mirror of https://github.com/n1nj4sec/pupy.git
Ensure no chances to omit close_cb
This commit is contained in:
parent
614fbc324a
commit
2cb0e4f5d7
|
@ -91,7 +91,11 @@ class PtyShell(object):
|
|||
pass
|
||||
|
||||
if self.master:
|
||||
self.master.close()
|
||||
try:
|
||||
self.master.close()
|
||||
except:
|
||||
pass
|
||||
|
||||
self.master = None
|
||||
|
||||
def __del__(self):
|
||||
|
|
Loading…
Reference in New Issue