mirror of
https://github.com/m1k1o/neko.git
synced 2025-04-29 18:36:22 +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 {
|
||||
return s.toClient(&oldMessage.ControlTarget{
|
||||
Event: oldEvent.CONTROL_GIVE,
|
||||
ID: request.HostID,
|
||||
Target: request.ID,
|
||||
ID: request.ID,
|
||||
Target: request.HostID,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -83,8 +83,8 @@ func (session *SessionCtx) SetAsHost() {
|
|||
session.manager.setHost(session, session)
|
||||
}
|
||||
|
||||
func (session *SessionCtx) SetAsHostBy(host types.Session) {
|
||||
session.manager.setHost(session, host)
|
||||
func (session *SessionCtx) SetAsHostBy(bySession types.Session) {
|
||||
session.manager.setHost(bySession, session)
|
||||
}
|
||||
|
||||
func (session *SessionCtx) ClearHost() {
|
||||
|
|
Loading…
Add table
Reference in a new issue