mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
controlRequest if already is the host.
This commit is contained in:
parent
b7103ca809
commit
26c0fea840
@ -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…
Reference in New Issue
Block a user