Skip to content

Commit

Permalink
legacy: fix sendControlHost.
Browse files Browse the repository at this point in the history
  • Loading branch information
m1k1o committed Sep 7, 2024
1 parent 373e997 commit 6aac5da
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/internal/http/legacy/wstoclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ func (s *session) sendControlHost(request message.ControlHost) error {
Target: lastHostID,
})
}
} else if request.ID == "" {
return s.toClient(&oldMessage.Control{
Event: oldEvent.CONTROL_LOCKED,
ID: request.HostID,
})
} else {
return s.toClient(&oldMessage.ControlTarget{
Event: oldEvent.CONTROL_GIVE,
Expand Down

0 comments on commit 6aac5da

Please sign in to comment.