Felix Lange f1d710af00 p2p: fix Peer shutdown deadlocks
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.
2015-04-10 13:26:27 +02:00
..
2015-04-07 14:57:04 +02:00
2015-04-10 13:26:27 +02:00
2015-04-10 13:26:27 +02:00
2015-04-10 13:26:27 +02:00
2015-04-10 13:26:27 +02:00
2015-02-13 23:54:34 +01:00
2015-04-10 13:26:27 +02:00
2015-03-23 16:41:41 +00:00