mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-22 21:47:08 +02:00
OnHostChanged event.
This commit is contained in:
parent
3aea0c7bf5
commit
a6b66e4d55
7 changed files with 28 additions and 86 deletions
|
@ -47,12 +47,6 @@ func (h *MessageHandlerCtx) SessionDisconnected(session types.Session) error {
|
|||
if session.IsHost() {
|
||||
h.desktop.ResetKeys()
|
||||
h.sessions.ClearHost()
|
||||
|
||||
h.sessions.Broadcast(
|
||||
message.ControlHost{
|
||||
Event: event.CONTROL_HOST,
|
||||
HasHost: false,
|
||||
}, nil)
|
||||
}
|
||||
|
||||
return h.SessionStateChanged(session)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue