Skip to content

Commit

Permalink
Make sure self.worker is not null when shutdown() is called.
Browse files Browse the repository at this point in the history
  • Loading branch information
sobomax committed Oct 5, 2023
1 parent b549fd5 commit ef6e0dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sippy/rtp_proxy_client_udp.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ func (self *Rtp_proxy_client_udp) reconnect(address net.Addr, bind_address *sipp
}

func (self *Rtp_proxy_client_udp) shutdown() {
if self.worker == nil {
return
}
self.worker.Shutdown()
self.worker = nil
}
Expand Down

0 comments on commit ef6e0dc

Please sign in to comment.