client-barcode: Extra method Status.logout()

This commit is contained in:
Sebastian Pipping 2011-10-17 22:44:31 +02:00
parent bb880e494b
commit 0a86d9391c
1 changed files with 6 additions and 2 deletions

View File

@ -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: