Skip to content
Snippets Groups Projects
Commit 5cf91417 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

init logger variables after migration

parent d13209ca
No related branches found
No related tags found
No related merge requests found
......@@ -82,7 +82,9 @@ def __init__(self):
# 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
return
self.init_var()
def init_var(self):
# if locked, wait up to 20 sec to unlock
# before raise (hopefully should be enough)
self.con = sqlite.connect(LOG_DB_PATH, timeout = 20.0,
......
......@@ -1474,6 +1474,8 @@ def die_cb(cli):
t.start()
gobject.timeout_add(500, wait_migration, m)
gtk.main()
# Init logger values (self.con/cur, jid_already_in)
gajim.logger.init_var()
check_paths.check_and_possibly_create_paths()
Interface()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment