summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream/statemachine.py
diff options
context:
space:
mode:
authorBrian Beggs <macdiesel@gmail.com>2010-06-03 09:54:48 -0400
committerBrian Beggs <macdiesel@gmail.com>2010-06-03 09:54:48 -0400
commit71d72f431fe4008c0075a458d7ef37ab41992617 (patch)
tree2c6a8519d43d2a1f482e14d7c5a4df55a8e75fd0 /sleekxmpp/xmlstream/statemachine.py
parentdb4989c66dcc717db138bbbf914b43d02236b849 (diff)
parentda6e1e47dc81f5f9579201644d7c18dd85510368 (diff)
downloadslixmpp-71d72f431fe4008c0075a458d7ef37ab41992617.tar.gz
slixmpp-71d72f431fe4008c0075a458d7ef37ab41992617.tar.bz2
slixmpp-71d72f431fe4008c0075a458d7ef37ab41992617.tar.xz
slixmpp-71d72f431fe4008c0075a458d7ef37ab41992617.zip
Merge remote branch 'tom/hacks'
Diffstat (limited to 'sleekxmpp/xmlstream/statemachine.py')
-rw-r--r--sleekxmpp/xmlstream/statemachine.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/sleekxmpp/xmlstream/statemachine.py b/sleekxmpp/xmlstream/statemachine.py
index c5f51765..065d5794 100644
--- a/sleekxmpp/xmlstream/statemachine.py
+++ b/sleekxmpp/xmlstream/statemachine.py
@@ -110,7 +110,14 @@ class StateMachine(object):
def reset(self):
# TODO need to lock before calling this?
self.transition(self.__current_state, self._default_state)
-
+
+
+ def current_state(self):
+ '''
+ Return the current state name.
+ '''
+ return self.__current_state
+
def __getitem__(self, state):
'''