From a086effd5250df6803d629214f8797af26c23455 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 5 May 2016 19:07:27 -0700 Subject: [PATCH] cmd_send: time import of tor_manager too --- src/wormhole/cli/cmd_send.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wormhole/cli/cmd_send.py b/src/wormhole/cli/cmd_send.py index c4811af..9904c58 100644 --- a/src/wormhole/cli/cmd_send.py +++ b/src/wormhole/cli/cmd_send.py @@ -40,7 +40,8 @@ def send(args, reactor=reactor): tor_manager = None if args.tor: - from ..twisted.tor_manager import TorManager + with args.timing.add("import", which="tor_manager"): + from ..twisted.tor_manager import TorManager tor_manager = TorManager(reactor, timing=args.timing) # For now, block everything until Tor has started. Soon: launch tor # in parallel with everything else, make sure the TorManager can