mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-22 14:00:27 +00:00
Fix crash on invalid team
This commit is contained in:
parent
9db48f4794
commit
c769e23a9a
@ -144,11 +144,11 @@ func (m *MMClient) Login() error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// set our team id as default route
|
|
||||||
m.Client.SetTeamId(m.Team.Id)
|
|
||||||
if m.Team == nil {
|
if m.Team == nil {
|
||||||
return errors.New("team not found")
|
return errors.New("team not found")
|
||||||
}
|
}
|
||||||
|
// set our team id as default route
|
||||||
|
m.Client.SetTeamId(m.Team.Id)
|
||||||
|
|
||||||
// setup websocket connection
|
// setup websocket connection
|
||||||
wsurl := wsScheme + m.Credentials.Server + "/api/v3/users/websocket"
|
wsurl := wsScheme + m.Credentials.Server + "/api/v3/users/websocket"
|
||||||
|
Loading…
Reference in New Issue
Block a user