From 2c64805ea11361788efaa7788d9982dc156ef995 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Tue, 24 May 2016 00:00:04 -0700 Subject: [PATCH] fix input_code --- src/wormhole/wormhole.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wormhole/wormhole.py b/src/wormhole/wormhole.py index 26c05a7..662b6e4 100644 --- a/src/wormhole/wormhole.py +++ b/src/wormhole/wormhole.py @@ -225,6 +225,7 @@ class _Wormhole: self._connection_waiters = [] self._started_get_code = False self._get_code = None + self._started_input_code = False self._code = None self._nameplate_id = None self._nameplate_state = CLOSED @@ -437,7 +438,8 @@ class _Wormhole: self._started_input_code = True with self._timing.add("API input_code"): yield self._when_connected() - ic = _InputCode(prompt, code_length, self._ws_send_command) + ic = _InputCode(self._reactor, prompt, code_length, + self._ws_send_command, self._timing) self._response_handle_nameplates = ic._response_handle_nameplates # TODO: signal_error code = yield ic.go()