mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 10:33:11 -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
|
||||
}
|
||||
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
|
||||
// joined. We must do this synchronously: we cannot rely on the roomserver output events as they
|
||||
|
|
|
|||
Loading…
Reference in a new issue