fix handleevents not prompting auth for event publish with auth-required
This commit is contained in:
@@ -161,6 +161,12 @@ func (l *Listener) writeWorker() {
|
||||
return
|
||||
}
|
||||
|
||||
// Skip writes if no connection (unit tests)
|
||||
if l.conn == nil {
|
||||
log.T.F("ws->%s skipping write (no connection)", l.remote)
|
||||
continue
|
||||
}
|
||||
|
||||
// Handle the write request
|
||||
var err error
|
||||
if req.IsPing {
|
||||
|
||||
Reference in New Issue
Block a user