mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-17 03:24:40 -07:00
Merge pull request #2639 from nats-io/reset-tmr
fix timer not being stopped prior to reset
This commit is contained in:
@@ -3160,6 +3160,12 @@ func (s *Server) startGWReplyMapExpiration() {
|
||||
}
|
||||
case cttl := <-s.gwrm.ch:
|
||||
ttl = cttl
|
||||
if !t.Stop() {
|
||||
select {
|
||||
case <-t.C:
|
||||
default:
|
||||
}
|
||||
}
|
||||
t.Reset(ttl)
|
||||
case <-s.quitCh:
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user