summaryrefslogtreecommitdiff
path: root/wrappers/python/src/state.py
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-08-19 16:32:35 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-08-19 16:32:35 +0200
commitd8c7f962e4fe2d4a46f0aeb1c9d9a371d5e41ee0 (patch)
treed98c682b31cccb975483111e5b817d5c8d029838 /wrappers/python/src/state.py
parentf81d05226fe61b697baa91e926dd86efad9d8084 (diff)
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
Diffstat (limited to 'wrappers/python/src/state.py')
-rw-r--r--wrappers/python/src/state.py5
1 files changed, 3 insertions, 2 deletions
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