cmd_receive: use wait=True for the last ack
This prevents the process from shutting down before the ack makes it to the server.
This commit is contained in:
parent
9c1af2667e
commit
611a7d05e9
|
@ -128,7 +128,7 @@ class TwistedReceiver:
|
||||||
# we're receiving a text message
|
# we're receiving a text message
|
||||||
self.msg(them_d["message"])
|
self.msg(them_d["message"])
|
||||||
data = json.dumps({"message_ack": "ok"}).encode("utf-8")
|
data = json.dumps({"message_ack": "ok"}).encode("utf-8")
|
||||||
yield w.send_data(data)
|
yield w.send_data(data, wait=True)
|
||||||
|
|
||||||
def handle_file(self, them_d):
|
def handle_file(self, them_d):
|
||||||
file_data = them_d["file"]
|
file_data = them_d["file"]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user