Merge PR109: flush stdout after displaying code

Closes #108
This commit is contained in:
Brian Warner 2016-12-17 17:34:02 -08:00
commit d81f2dae95

View File

@ -84,6 +84,8 @@ class Sender:
if not args.zeromode:
print(u"Wormhole code is: %s" % code, file=args.stdout)
# flush stdout so the code is displayed immediately
args.stdout.flush()
print(u"", file=args.stdout)
yield w.establish_key()