init logger variables after migration

This commit is contained in:
Yann Leboulanger 2005-12-07 20:20:48 +00:00
parent d13209ca76
commit 5cf9141777
2 changed files with 4 additions and 0 deletions

View File

@ -82,7 +82,9 @@ class Logger:
# this can happen only the first time (the time we create the db) # this can happen only the first time (the time we create the db)
# db is not created here but in src/common/checks_paths.py # db is not created here but in src/common/checks_paths.py
return return
self.init_var()
def init_var(self):
# if locked, wait up to 20 sec to unlock # if locked, wait up to 20 sec to unlock
# before raise (hopefully should be enough) # before raise (hopefully should be enough)
self.con = sqlite.connect(LOG_DB_PATH, timeout = 20.0, self.con = sqlite.connect(LOG_DB_PATH, timeout = 20.0,

View File

@ -1474,6 +1474,8 @@ if __name__ == '__main__':
t.start() t.start()
gobject.timeout_add(500, wait_migration, m) gobject.timeout_add(500, wait_migration, m)
gtk.main() gtk.main()
# Init logger values (self.con/cur, jid_already_in)
gajim.logger.init_var()
check_paths.check_and_possibly_create_paths() check_paths.check_and_possibly_create_paths()
Interface() Interface()