diff options
author | Kali Kaneko <kali@leap.se> | 2013-09-28 17:19:57 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2013-09-30 13:14:21 -0400 |
commit | 42a262e685dd616e2bdc9a6f1e092cf25c3dc4e7 (patch) | |
tree | 779151c30e2db1b9a25a3a3de08d07096135af46 /src/leap/bitmask/gui/statemachines.py | |
parent | 4728ea9e5cbb0f7ed47e7ca609c0531a31c847e0 (diff) |
add connection_aborted signal to state machine
Diffstat (limited to 'src/leap/bitmask/gui/statemachines.py')
-rw-r--r-- | src/leap/bitmask/gui/statemachines.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/leap/bitmask/gui/statemachines.py b/src/leap/bitmask/gui/statemachines.py index c3dd5ed3..c02bf9bc 100644 --- a/src/leap/bitmask/gui/statemachines.py +++ b/src/leap/bitmask/gui/statemachines.py @@ -128,11 +128,17 @@ class ConnectionMachineBuilder(object): states[_OFF]) # * If we receive the connection_died, we transition - # to the off state + # from on directly to the off state states[_ON].addTransition( conn.qtsigs.connection_died_signal, states[_OFF]) + # * If we receive the connection_aborted, we transition + # from connecting to the off state + states[_CON].addTransition( + conn.qtsigs.connection_aborted_signal, + states[_OFF]) + # adding states to the machine for state in states.itervalues(): machine.addState(state) |