uberdog: Make CSMUD only sync its local database when self.dbm.sync() is defined.
This commit is contained in:
parent
b7097dfbb7
commit
087b067dbd
1 changed files with 2 additions and 1 deletions
|
@ -49,7 +49,8 @@ class LocalAccountDB:
|
|||
|
||||
def storeAccountID(self, databaseId, accountId, callback):
|
||||
self.dbm[databaseId] = str(accountId)
|
||||
self.dbm.sync()
|
||||
if getattr(self.dbm, 'sync', None):
|
||||
self.dbm.sync()
|
||||
callback()
|
||||
|
||||
class RemoteAccountDB:
|
||||
|
|
Loading…
Reference in a new issue