mirror of
https://github.com/OpenVPN/openvpn3.git
synced 2024-09-19 19:52:15 +02:00
dco-win: add halt check after connection attempt
parent->transport_connecting() might trigger stop(), reset device handle and set halt to true if TCP server is down. In this case we should not queue read. Signed-off-by: Lev Stipakov <lev@openvpn.net>
This commit is contained in:
parent
ae99307219
commit
2958161e7f
@ -232,7 +232,9 @@ protected:
|
||||
add_peer_([self=Ptr(this)]() {
|
||||
if (!self->halt) {
|
||||
self->transport_parent->transport_connecting();
|
||||
self->queue_read_();
|
||||
/* above line might set halt to true in case of TCP reconnect */
|
||||
if (!self->halt)
|
||||
self->queue_read_();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user