From 2e2120f3273005d706bff286dd530a9cee09cdfb Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Sun, 11 Aug 2019 21:40:06 -0700 Subject: [PATCH] manager: handle mismatched code during WAITING too --- src/wormhole/_dilation/manager.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wormhole/_dilation/manager.py b/src/wormhole/_dilation/manager.py index 5e2c4df..096b459 100644 --- a/src/wormhole/_dilation/manager.py +++ b/src/wormhole/_dilation/manager.py @@ -552,6 +552,7 @@ class Manager(object): ABANDONING.upon(rx_HINTS, enter=ABANDONING, outputs=[]) # shouldn't happen STOPPING.upon(rx_HINTS, enter=STOPPING, outputs=[]) + WAITING.upon(stop, enter=STOPPED, outputs=[notify_stopped]) WANTING.upon(stop, enter=STOPPED, outputs=[notify_stopped]) CONNECTING.upon(stop, enter=STOPPED, outputs=[stop_connecting, notify_stopped]) CONNECTED.upon(stop, enter=STOPPING, outputs=[abandon_connection])