in pyrit/ui/rpc_client.py [0:0]
def _ping(self):
try:
while self._is_running:
self._c.root.receive_ping()
time.sleep(1.5)
if not self._is_running:
print("Connection closed")
if self._callback_disconnected is not None:
self._callback_disconnected()
except EOFError:
print("Connection closed")
if self._callback_disconnected is not None:
self._callback_disconnected()