fix logs, unified session_id.

This commit is contained in:
Miroslav Šedivý 2021-03-13 23:27:28 +01:00
parent cacdd9e20a
commit d83e04e7ec
10 changed files with 37 additions and 40 deletions

View file

@ -84,7 +84,7 @@ func (session *SessionCtx) profileChanged() {
// ---
func (session *SessionCtx) IsHost() bool {
return session.manager.host != nil && session.manager.host.ID() == session.ID()
return session.manager.host != nil && session.manager.host == session
}
func (session *SessionCtx) IsConnected() bool {