reconenct with identify packet until resume is fixed.
This commit is contained in:
parent
53a826dd0d
commit
b09ed37294
1 changed files with 9 additions and 9 deletions
6
wsapi.go
6
wsapi.go
|
@ -97,8 +97,8 @@ func (s *Session) Open() (err error) {
|
||||||
|
|
||||||
s.log(LogInformational, "sending resume packet to gateway")
|
s.log(LogInformational, "sending resume packet to gateway")
|
||||||
// TODO: RESUME
|
// TODO: RESUME
|
||||||
|
}
|
||||||
} else {
|
//else {
|
||||||
|
|
||||||
s.log(LogInformational, "sending identify packet to gateway")
|
s.log(LogInformational, "sending identify packet to gateway")
|
||||||
err = s.wsConn.WriteJSON(handshakeOp{2, handshakeData{s.Token, handshakeProperties{runtime.GOOS, "Discordgo v" + VERSION, "", "", ""}, 250, s.Compress}})
|
err = s.wsConn.WriteJSON(handshakeOp{2, handshakeData{s.Token, handshakeProperties{runtime.GOOS, "Discordgo v" + VERSION, "", "", ""}, 250, s.Compress}})
|
||||||
|
@ -106,7 +106,7 @@ func (s *Session) Open() (err error) {
|
||||||
s.log(LogWarning, "error sending gateway identify packet, %s, %s", s.gateway, err)
|
s.log(LogWarning, "error sending gateway identify packet, %s, %s", s.gateway, err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
//}
|
||||||
|
|
||||||
// Create listening outside of listen, as it needs to happen inside the mutex
|
// Create listening outside of listen, as it needs to happen inside the mutex
|
||||||
// lock.
|
// lock.
|
||||||
|
|
Loading…
Reference in a new issue