Skip to content
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
4 changes: 3 additions & 1 deletion pkg/dmsgctrl/serve_listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
package dmsgctrl

import (
"errors"
"net"
"strings"

"github.com/skycoin/dmsg/pkg/dmsg"
"github.com/skycoin/skywire/pkg/skywire-utilities/pkg/logging"
)

Expand All @@ -21,7 +23,7 @@ func ServeListener(l net.Listener, chanLen int) <-chan *Control {
for {
conn, err := l.Accept()
if err != nil {
if strings.Contains(err.Error(), "use of closed") {
if errors.Is(err, dmsg.ErrEntityClosed) || strings.Contains(err.Error(), "use of closed") {
return
}
log.Warnf("Failed to accept dmsgctrl conn, continuing: %v", err)
Expand Down
Loading