diff --git a/whisper/whisperv6/peer.go b/whisper/whisperv6/peer.go index 4451f14958..29d8bdf17e 100644 --- a/whisper/whisperv6/peer.go +++ b/whisper/whisperv6/peer.go @@ -146,7 +146,9 @@ func (peer *Peer) handshake() error { func (peer *Peer) update() { // Start the tickers for the updates expire := time.NewTicker(expirationCycle) + defer expire.Stop() transmit := time.NewTicker(transmissionCycle) + defer transmit.Stop() // Loop and transmit until termination is requested for {