cmd_send_blocking: close the transit when we're done

This commit is contained in:
Brian Warner 2016-02-17 13:45:07 -08:00
parent 5e928ac9f0
commit d14d35f3cd

View File

@ -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