Fix race in peer connection in C++ demo app
authorMatt Corallo <git@bluematt.me>
Sun, 29 Oct 2023 18:40:47 +0000 (18:40 +0000)
committerMatt Corallo <git@bluematt.me>
Sun, 29 Oct 2023 18:44:01 +0000 (18:44 +0000)
When we disconnect then immediately reconnect from one peer we may
still get the second connection through before the disconnection is
handled on the other end, causing connection failures. We fix this
here by disconnecting on both ends before reconnecting.


No differences found