Skip to content

Commit

Permalink
Bugfix: Return in txListenerLoop if node is shutting down
Browse files Browse the repository at this point in the history
  • Loading branch information
jdowning100 committed Oct 25, 2024
1 parent 3cf25a0 commit d7cb789
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/tx_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,11 @@ func (pool *TxPool) Stop() {
if pool.journal != nil {
pool.journal.close()
}
for _, client := range pool.poolSharingClients {
if client != nil {
client.Close()
}
}
pool.logger.Info("Transaction pool stopped")
}

Expand Down Expand Up @@ -1605,6 +1610,8 @@ func (pool *TxPool) txListenerLoop() {
}
}
}
case <-pool.reorgShutdownCh:
return
}
}
}
Expand Down

0 comments on commit d7cb789

Please sign in to comment.