init logger variables after migration
This commit is contained in:
parent
d13209ca76
commit
5cf9141777
|
@ -82,7 +82,9 @@ class Logger:
|
|||
# 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 @@ if __name__ == '__main__':
|
|||
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()
|
||||
|
|
Loading…
Reference in New Issue