mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-19 03:57:06 +02:00
controlRequest if already is the host.
This commit is contained in:
parent
b7103ca809
commit
26c0fea840
1 changed files with 5 additions and 0 deletions
|
@ -25,6 +25,11 @@ func (h *MessageHandlerCtx) controlRelease(session types.Session) error {
|
|||
}
|
||||
|
||||
func (h *MessageHandlerCtx) controlRequest(session types.Session) error {
|
||||
if session.IsHost() {
|
||||
h.logger.Debug().Str("id", session.ID()).Msg("is already the host")
|
||||
return nil
|
||||
}
|
||||
|
||||
// TODO: Allow implicit requests.
|
||||
host := h.sessions.GetHost()
|
||||
if host != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue