uberdog: Make CSMUD only sync its local database when self.dbm.sync() is defined.

This commit is contained in:
Sam Edwards 2014-01-22 18:32:13 -07:00
parent b7097dfbb7
commit 087b067dbd

View file

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