diff --git a/client-barcode/freitagskasse.py b/client-barcode/freitagskasse.py index 4c3b604..40c38bf 100644 --- a/client-barcode/freitagskasse.py +++ b/client-barcode/freitagskasse.py @@ -377,6 +377,10 @@ class Status: self.balance = balance self.transfers = list() + def logout(self): + # Must not fail if not logged in + self._reset() + def commit(self): assert(self.logged_in()) @@ -397,8 +401,8 @@ class Status: self.dump() delay('Logout', 3) - # Logout - self._reset() + self.logout() + def find(self, barcode): try: