[MM-60307] Check if session is nil before calling UpdateLastActivityAtIfNeeded (#28254)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
9900151fb6
Коммит
20ed58906a
@@ -253,7 +253,10 @@ func (ps *PlatformService) NewWebConn(cfg *WebConnConfig, suite SuiteIFace, runn
|
||||
// Create a goroutine to avoid blocking the creation of the websocket connection.
|
||||
ps.Go(func() {
|
||||
ps.SetStatusOnline(userID, false)
|
||||
ps.UpdateLastActivityAtIfNeeded(*wc.GetSession())
|
||||
session := wc.GetSession()
|
||||
if session != nil {
|
||||
ps.UpdateLastActivityAtIfNeeded(*session)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user