Some edits (Python 2.6 compat., no websocket by default, some debugging) - #10
Some edits (Python 2.6 compat., no websocket by default, some debugging)#10Elektordi wants to merge 4 commits into
Conversation
|
Great, thanks for this. I'll have a quick look now and do a quick test over the weekend. |
|
Hello! Did you had any time to review this? |
|
This seems to be different problems. In 986760e, I'm fixing a bug I think I added in previous commit: |
|
Well, ok for the diff --git a/relay.py b/relay.py
index e2285b3..3014132 100644
--- a/relay.py
+++ b/relay.py
@@ -24,8 +24,10 @@
# Close threads gracefully
#
def quit():
broadcast.kill = True
- requestHandler.kill = True
- quitsock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- quitsock.connect(("127.0.0.1", options.port))
- quitsock.close()
+ if requestHandler:
+ requestHandler.kill = True
+ quitsock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
+ quitsock.connect(("127.0.0.1", options.port))
+ quitsock.close()
sys.exit(1)
@@ -54,6 +56,9 @@ def quit():
logging.error("Port must be numeric")
op.print_help()
sys.exit(1)
+
+ requestHandler = None
Status()
statusThread = threading.Thread(target=Status._instance.run)Then my commit fixes the broadcast --> broadcaster typo. |
|
To be honest the whole Instead of all these |
|
Here is what I have in mind as a refactoring of the shutdown process: Silex@217904d |
|
Sorry @Elektordi, I haven't forgotten about this, I've just been very busy lately! @Silex good catch regarding |
|
A'ight 👍 |
No description provided.