diff options
author | Kali Kaneko <kali@leap.se> | 2013-09-30 13:32:51 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2013-09-30 13:32:51 -0400 |
commit | 24c91beb6f7102158a37330e914e19570bb85ecf (patch) | |
tree | cb80043c11812b2a697cb23bccf7f0d6af9cc78a /src/leap/bitmask/gui/statemachines.py | |
parent | 42a262e685dd616e2bdc9a6f1e092cf25c3dc4e7 (diff) |
add connection_died transition to connecting->off too
Diffstat (limited to 'src/leap/bitmask/gui/statemachines.py')
-rw-r--r-- | src/leap/bitmask/gui/statemachines.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/leap/bitmask/gui/statemachines.py b/src/leap/bitmask/gui/statemachines.py index c02bf9bc..94726720 100644 --- a/src/leap/bitmask/gui/statemachines.py +++ b/src/leap/bitmask/gui/statemachines.py @@ -138,6 +138,14 @@ class ConnectionMachineBuilder(object): states[_CON].addTransition( conn.qtsigs.connection_aborted_signal, states[_OFF]) + # * Connection died can in some cases also be + # triggered while we are in CONNECTING + # state. I should be avoided, since connection_aborted + # is clearer (and reserve connection_died + # for transitions from on->off + states[_CON].addTransition( + conn.qtsigs.connection_died_signal, + states[_OFF]) # adding states to the machine for state in states.itervalues(): |