We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64a3218 commit af1ac9cCopy full SHA for af1ac9c
listeners.go
@@ -131,7 +131,7 @@ func (fcl *fakeCloseListener) Close() error {
131
// and this is kind of cheating, but it works, and
132
// it apparently even works on Windows.
133
_ = fcl.sharedListener.setDeadline()
134
- listenerPool.Delete(fcl.sharedListener.key)
+ _, _ = listenerPool.Delete(fcl.sharedListener.key)
135
}
136
return nil
137
@@ -163,7 +163,7 @@ type fakeClosePacketConn struct {
163
164
func (fcpc *fakeClosePacketConn) Close() error {
165
if atomic.CompareAndSwapInt32(&fcpc.closed, 0, 1) {
166
- listenerPool.Delete(fcpc.sharedPacketConn.key)
+ _, _ = listenerPool.Delete(fcpc.sharedPacketConn.key)
167
168
169
0 commit comments