From d8c7f962e4fe2d4a46f0aeb1c9d9a371d5e41ee0 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Fri, 19 Aug 2022 16:32:35 +0200 Subject: State + FSM: Properly handle the disconnect flow - /disconnect is now called - A new state is added (DISCONNECTING) that waits for the disconnect to complete - A helper function is exposed (InFSMState) that can be used by clients to see in which state they are in --- wrappers/python/src/state.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'wrappers/python/src/state.py') diff --git a/wrappers/python/src/state.py b/wrappers/python/src/state.py index cd5bd90..a4b11a8 100644 --- a/wrappers/python/src/state.py +++ b/wrappers/python/src/state.py @@ -19,5 +19,6 @@ class State(IntEnum): REQUEST_CONFIG = 8 ASK_PROFILE = 9 HAS_CONFIG = 10 - CONNECTING = 11 - CONNECTED = 12 + DISCONNECTING = 11 + CONNECTING = 12 + CONNECTED = 13 -- cgit v1.2.3