mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
whisper/whisperv6 | defer expire ticker stop added
This commit is contained in:
parent
f0be151349
commit
b7cc43783b
1 changed files with 1 additions and 0 deletions
|
|
@ -894,6 +894,7 @@ func (whisper *Whisper) processQueue() {
|
||||||
func (whisper *Whisper) update() {
|
func (whisper *Whisper) update() {
|
||||||
// Start a ticker to check for expirations
|
// Start a ticker to check for expirations
|
||||||
expire := time.NewTicker(expirationCycle)
|
expire := time.NewTicker(expirationCycle)
|
||||||
|
defer expire.Stop()
|
||||||
|
|
||||||
// Repeat updates until termination is requested
|
// Repeat updates until termination is requested
|
||||||
for {
|
for {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue