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