From d14d35f3cd73e29f2380b116434d6cb8266cc542 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Wed, 17 Feb 2016 13:45:07 -0800 Subject: [PATCH] cmd_send_blocking: close the transit when we're done --- src/wormhole/scripts/cmd_send_blocking.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wormhole/scripts/cmd_send_blocking.py b/src/wormhole/scripts/cmd_send_blocking.py index e59209e..0d52751 100644 --- a/src/wormhole/scripts/cmd_send_blocking.py +++ b/src/wormhole/scripts/cmd_send_blocking.py @@ -96,6 +96,7 @@ def _send_file_blocking(w, appid, them_phase1, fd_to_send, transit_sender): print("File sent.. waiting for confirmation") ack = record_pipe.receive_record() + record_pipe.close() if ack == b"ok\n": print("Confirmation received. Transfer complete.") return 0