Log out on reset
authorJohn Hodge <tpg@ucc.asn.au>
Thu, 23 Mar 2017 07:31:31 +0000 (15:31 +0800)
committerJohn Hodge <tpg@ucc.asn.au>
Thu, 23 Mar 2017 07:31:31 +0000 (15:31 +0800)
VendServer/VendServer.py

index aee2305..77cc0bf 100755 (executable)
@@ -371,6 +371,7 @@ class VendServer():
                                self.vstatus.cur_user = ''
                                self.vstatus.cur_selection = ''
                                self._last_card_id = -1
+                               self.dispense.logOut()
                                self.vstatus.mk.set_messages([(self.center('BYE!'), False, 1.5)])
                                self.reset_idler(2)
                                return
@@ -471,6 +472,7 @@ class VendServer():
                        if key == 11:
                                if self.vstatus.cur_pin == '':
                                        self.vstatus.cur_user = ''
+                                       self.dispense.logOut()
                                        slef.reset_idler()
 
                                        return
@@ -518,6 +520,7 @@ class VendServer():
                if len(self.vstatus.cur_user) <8:
                        if key == 11:
                                self.vstatus.cur_user = ''
+                               self.dispense.logOut()
 
                                self.reset_idler()
                                return

UCC git Repository :: git.ucc.asn.au