Add missing ensure_future to bookmarks.save() calls
This commit is contained in:
parent
9c6e89d0e5
commit
ec6a98e99f
2 changed files with 6 additions and 2 deletions
|
@ -396,7 +396,9 @@ class Core:
|
|||
if value not in ('pep', 'privatexml'):
|
||||
return
|
||||
self.bookmarks.preferred = value
|
||||
self.bookmarks.save(self.xmpp, core=self)
|
||||
asyncio.ensure_future(
|
||||
self.bookmarks.save(self.xmpp, core=self)
|
||||
)
|
||||
|
||||
def on_gaps_config_change(self, option, value):
|
||||
"""
|
||||
|
|
|
@ -1510,7 +1510,9 @@ class MucTab(ChatTab):
|
|||
if config.get('synchronise_open_rooms'):
|
||||
if self.jid in self.core.bookmarks:
|
||||
self.core.bookmarks[self.jid].autojoin = False
|
||||
self.core.bookmarks.save(self.core.xmpp)
|
||||
asyncio.ensure_future(
|
||||
self.core.bookmarks.save(self.core.xmpp)
|
||||
)
|
||||
self.core.close_tab(self)
|
||||
|
||||
def on_close(self) -> None:
|
||||
|
|
Loading…
Reference in a new issue