mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 18:43:10 -06:00
Check for nil in response to PerformJoin
This commit is contained in:
parent
e21fd0241e
commit
b5b4812a32
|
|
@ -172,6 +172,9 @@ func (r *FederationInternalAPI) performJoinUsingServer(
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
r.statistics.ForServer(serverName).Success(statistics.SendDirect)
|
r.statistics.ForServer(serverName).Success(statistics.SendDirect)
|
||||||
|
if response == nil {
|
||||||
|
return fmt.Errorf("Received nil response from gomatrixserverlib.PerformJoin")
|
||||||
|
}
|
||||||
|
|
||||||
// We need to immediately update our list of joined hosts for this room now as we are technically
|
// We need to immediately update our list of joined hosts for this room now as we are technically
|
||||||
// joined. We must do this synchronously: we cannot rely on the roomserver output events as they
|
// joined. We must do this synchronously: we cannot rely on the roomserver output events as they
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue