client-barcode: Extra method Status.logout()
This commit is contained in:
parent
bb880e494b
commit
0a86d9391c
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue