mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-03 16:59:12 +02:00
locks send immediate ID.
This commit is contained in:
parent
df64a53e58
commit
3d0b245abf
1 changed files with 6 additions and 0 deletions
|
@ -567,11 +567,13 @@ func (s *session) wsToClient(msg []byte) error {
|
|||
err = s.toClient(&oldMessage.AdminLock{
|
||||
Event: oldEvent.ADMIN_LOCK,
|
||||
Resource: "control",
|
||||
ID: request.ID,
|
||||
})
|
||||
} else {
|
||||
err = s.toClient(&oldMessage.AdminLock{
|
||||
Event: oldEvent.ADMIN_UNLOCK,
|
||||
Resource: "control",
|
||||
ID: request.ID,
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -587,11 +589,13 @@ func (s *session) wsToClient(msg []byte) error {
|
|||
err = s.toClient(&oldMessage.AdminLock{
|
||||
Event: oldEvent.ADMIN_LOCK,
|
||||
Resource: "login",
|
||||
ID: request.ID,
|
||||
})
|
||||
} else {
|
||||
err = s.toClient(&oldMessage.AdminLock{
|
||||
Event: oldEvent.ADMIN_UNLOCK,
|
||||
Resource: "login",
|
||||
ID: request.ID,
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -620,11 +624,13 @@ func (s *session) wsToClient(msg []byte) error {
|
|||
err = s.toClient(&oldMessage.AdminLock{
|
||||
Event: oldEvent.ADMIN_LOCK,
|
||||
Resource: "file_transfer",
|
||||
ID: request.ID,
|
||||
})
|
||||
} else {
|
||||
err = s.toClient(&oldMessage.AdminLock{
|
||||
Event: oldEvent.ADMIN_UNLOCK,
|
||||
Resource: "file_transfer",
|
||||
ID: request.ID,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue