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:
Brian Warner 2016-04-20 12:11:01 -07:00
parent 9c1af2667e
commit 611a7d05e9

View File

@ -128,7 +128,7 @@ class TwistedReceiver:
# we're receiving a text message
self.msg(them_d["message"])
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):
file_data = them_d["file"]