Call AdminTest() right after connecting
This commit is contained in:
parent
ded9e31315
commit
31049cd4d5
7
user.go
7
user.go
@ -454,6 +454,13 @@ func (user *User) intPostLogin() {
|
|||||||
user.createCommunity()
|
user.createCommunity()
|
||||||
user.tryAutomaticDoublePuppeting()
|
user.tryAutomaticDoublePuppeting()
|
||||||
|
|
||||||
|
err := user.Conn.AdminTest()
|
||||||
|
if err != nil {
|
||||||
|
user.sendMarkdownBridgeAlert("Post-connection ping failed: %v", err)
|
||||||
|
} else {
|
||||||
|
user.log.Debugln("Post-login ping OK")
|
||||||
|
}
|
||||||
|
|
||||||
select {
|
select {
|
||||||
case <-user.chatListReceived:
|
case <-user.chatListReceived:
|
||||||
user.log.Debugln("Chat list receive confirmation received in PostLogin")
|
user.log.Debugln("Chat list receive confirmation received in PostLogin")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user