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
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
parent
8cb2a515e1
commit
0ee1b6e018
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue