send-blocking: don't create Transit unless we need it
This commit is contained in:
parent
dba42aff01
commit
142f3fc154
|
@ -17,6 +17,7 @@ def send_blocking(args):
|
||||||
print(u"On the other computer, please run: %s" % other_cmd,
|
print(u"On the other computer, please run: %s" % other_cmd,
|
||||||
file=args.stdout)
|
file=args.stdout)
|
||||||
|
|
||||||
|
if fd_to_send is not None:
|
||||||
transit_sender = TransitSender(args.transit_helper)
|
transit_sender = TransitSender(args.transit_helper)
|
||||||
transit_data = {
|
transit_data = {
|
||||||
"direct_connection_hints": transit_sender.get_direct_hints(),
|
"direct_connection_hints": transit_sender.get_direct_hints(),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user