From 612326d117d22e76c65a729271b2fa4d02bb71b8 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Thu, 23 Mar 2017 15:31:31 +0800 Subject: [PATCH] Log out on reset --- VendServer/VendServer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/VendServer/VendServer.py b/VendServer/VendServer.py index aee2305..77cc0bf 100755 --- a/VendServer/VendServer.py +++ b/VendServer/VendServer.py @@ -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 -- 2.20.1