mirror of
https://github.com/status-im/op-geth.git
synced 2025-01-09 22:25:44 +00:00
f1d710af00
There were multiple synchronization issues in the disconnect handling, all caused by the odd special-casing of Peer.readLoop errors. Remove the special handling of read errors and make readLoop part of the Peer WaitGroup. Thanks to @Gustav-Simonsson for pointing at arrows in a diagram and playing rubber-duck.