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.balance = balance
|
||||||
self.transfers = list()
|
self.transfers = list()
|
||||||
|
|
||||||
|
def logout(self):
|
||||||
|
# Must not fail if not logged in
|
||||||
|
self._reset()
|
||||||
|
|
||||||
def commit(self):
|
def commit(self):
|
||||||
assert(self.logged_in())
|
assert(self.logged_in())
|
||||||
|
|
||||||
|
@ -397,8 +401,8 @@ class Status:
|
||||||
self.dump()
|
self.dump()
|
||||||
delay('Logout', 3)
|
delay('Logout', 3)
|
||||||
|
|
||||||
# Logout
|
self.logout()
|
||||||
self._reset()
|
|
||||||
|
|
||||||
def find(self, barcode):
|
def find(self, barcode):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue