Skip to content

Commit

Permalink
Do not set m.pc to nil.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbruens committed Sep 18, 2024
1 parent 8dd3e1e commit e1983df
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion service/listeners.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,6 @@ func (m *multiPacketListener) Acquire() (net.PacketConn, error) {
if m.count == 0 {
close(m.doneCh)
m.pc.Close()
m.pc = nil
if m.onCloseFunc != nil {
onCloseFunc := m.onCloseFunc
m.onCloseFunc = nil
Expand Down

0 comments on commit e1983df

Please sign in to comment.