Ensure that stream was closed

This commit is contained in:
Oleksii Shevchuk 2016-10-30 23:14:49 +02:00
parent fe8542f4cc
commit 237fece741

View File

@ -264,6 +264,9 @@ def rpyc_loop(launcher):
except Exception as e:
logging.error(e)
finally:
stream.close()
except EOFError:
print "EOFError received, restarting the connection"