From 51cd7258a88b29450735355a666df142a0c29069 Mon Sep 17 00:00:00 2001
From: dusoleil <howcansocksbereal@gmail.com>
Date: Thu, 2 Sep 2021 15:36:22 -0400
Subject: Handle Process destr when Process constr throws

Signed-off-by: dusoleil <howcansocksbereal@gmail.com>
---
 tools/sploit/sploit/comm.py | 1 +
 1 file changed, 1 insertion(+)

(limited to 'tools/sploit')

diff --git a/tools/sploit/sploit/comm.py b/tools/sploit/sploit/comm.py
index 81efa9c..7d6cd8c 100644
--- a/tools/sploit/sploit/comm.py
+++ b/tools/sploit/sploit/comm.py
@@ -112,6 +112,7 @@ class Process:
         self.stdout = self.proc.stdin
 
     def __del__(self):
+        if getattr(self, 'proc', None) == None : return
         if(self.proc.poll() != None):
             return
         try:
-- 
cgit v1.2.3