Matthew Holt
3 years ago
No known key found for this signature in database
GPG Key ID: 2A349DD577D586A5
1 changed files with
2 additions and
2 deletions
-
listeners.go
|
|
@ -131,7 +131,7 @@ func (fcl *fakeCloseListener) Close() error { |
|
|
|
// and this is kind of cheating, but it works, and
|
|
|
|
// it apparently even works on Windows.
|
|
|
|
_ = fcl.sharedListener.setDeadline() |
|
|
|
listenerPool.Delete(fcl.sharedListener.key) |
|
|
|
_, _ = listenerPool.Delete(fcl.sharedListener.key) |
|
|
|
} |
|
|
|
return nil |
|
|
|
} |
|
|
@ -163,7 +163,7 @@ type fakeClosePacketConn struct { |
|
|
|
|
|
|
|
func (fcpc *fakeClosePacketConn) Close() error { |
|
|
|
if atomic.CompareAndSwapInt32(&fcpc.closed, 0, 1) { |
|
|
|
listenerPool.Delete(fcpc.sharedPacketConn.key) |
|
|
|
_, _ = listenerPool.Delete(fcpc.sharedPacketConn.key) |
|
|
|
} |
|
|
|
return nil |
|
|
|
} |
|
|
|