Commit 38777eb7 authored by Steven Allen's avatar Steven Allen

reset the dialer (which ports to dial from) when closing a listener

parent d11e3534
......@@ -16,6 +16,7 @@ type listener struct {
func (l *listener) Close() error {
l.network.mu.Lock()
delete(l.network.listeners, l)
l.network.dialer = nil
l.network.mu.Unlock()
return l.Listener.Close()
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment