mirror of
https://github.com/lxc/incus.git
synced 2026-02-05 09:46:19 +01:00
cmd/incus-agent: address if flow in Connect
Signed-off-by: Olivier Lechevalier <olivier.lechevalier@gmail.com>
This commit is contained in:
committed by
Stéphane Graber
parent
31357237cb
commit
33aadce7b7
@@ -174,9 +174,9 @@ func (s *execWs) Connect(op *operations.Operation, r *http.Request, w http.Respo
|
||||
return nil
|
||||
} else if !found {
|
||||
return errors.New("Unknown websocket number")
|
||||
} else {
|
||||
return errors.New("Websocket number already connected")
|
||||
}
|
||||
|
||||
return errors.New("Websocket number already connected")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user