Skip to content
This repository has been archived by the owner on Sep 29, 2024. It is now read-only.

fix: errorMessage type assertion #550

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions server.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package socketio

import (
"errors"
"net/http"

"github.com/gomodule/redigo/redis"
Expand Down Expand Up @@ -237,8 +238,8 @@ func (s *Server) serveError(c *conn) {
case <-c.quitChan:
return
case err := <-c.errorChan:
errMsg, ok := err.(errorMessage)
if !ok {
var errMsg *errorMessage
if !errors.As(err, &errMsg) {
continue
}

Expand Down