mirror of
https://github.com/m1k1o/neko.git
synced 2025-04-30 10:56:20 +02:00
fix control give.
This commit is contained in:
parent
38e8ac3e21
commit
e719109116
2 changed files with 4 additions and 4 deletions
|
@ -130,8 +130,8 @@ func (s *session) sendControlHost(request message.ControlHost) error {
|
||||||
} else {
|
} else {
|
||||||
return s.toClient(&oldMessage.ControlTarget{
|
return s.toClient(&oldMessage.ControlTarget{
|
||||||
Event: oldEvent.CONTROL_GIVE,
|
Event: oldEvent.CONTROL_GIVE,
|
||||||
ID: request.HostID,
|
ID: request.ID,
|
||||||
Target: request.ID,
|
Target: request.HostID,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -83,8 +83,8 @@ func (session *SessionCtx) SetAsHost() {
|
||||||
session.manager.setHost(session, session)
|
session.manager.setHost(session, session)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (session *SessionCtx) SetAsHostBy(host types.Session) {
|
func (session *SessionCtx) SetAsHostBy(bySession types.Session) {
|
||||||
session.manager.setHost(session, host)
|
session.manager.setHost(bySession, session)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (session *SessionCtx) ClearHost() {
|
func (session *SessionCtx) ClearHost() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue