account: start background watch job in init
Tests / Test on ${{ matrix.build }} (linux-amd64, ubuntu-latest, stable, x86_64-unknown-linux-gnu) (push) Failing after 10m20s Details

When IsOnline was introduced, the background watch job stopped being
created when the connection was initialized. Restore that behavior.
pull/266/head
Manos Pitsidianakis 2023-07-28 19:34:56 +03:00
parent 8cb2a515e1
commit 0ee1b6e018
Signed by: Manos Pitsidianakis
GPG Key ID: 7729C7707F7E09D0
1 changed files with 1 additions and 0 deletions

View File

@ -1900,6 +1900,7 @@ impl Account {
match is_online {
Ok(()) => {
if matches!(self.is_online, IsOnline::Err { ref value, ..} if !value.kind.is_authentication())
|| matches!(self.is_online, IsOnline::Uninit)
{
self.watch();
}