mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-06-14 17:08:21 +02:00
Don't return CONNECTING bridge state if there's no session
This commit is contained in:
parent
cad99ece0a
commit
f7b387a4ff
|
@ -246,7 +246,7 @@ func (prov *ProvisioningAPI) BridgeStatePing(w http.ResponseWriter, r *http.Requ
|
|||
} else {
|
||||
remote.StateEvent = StateConnected
|
||||
}
|
||||
} else if user.Conn.IsLoginInProgress() {
|
||||
} else if user.Conn.IsLoginInProgress() && user.Session != nil {
|
||||
remote.StateEvent = StateConnecting
|
||||
remote.Error = WAConnecting
|
||||
} else if !user.Conn.IsConnected() && user.Session != nil {
|
||||
|
|
Loading…
Reference in a new issue