Commit 6772c7c8 authored by Alan Marchiori's avatar Alan Marchiori

added cehck for socket on socket restart

parent 877b9f40
......@@ -206,7 +206,8 @@ def main():
except socket.error as msg:
logging.error("Socket died with: {}".format(msg))
skt.close()
if skt:
skt.close()
skt = None
if 0:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment