mirror of
https://github.com/matrix-construct/construct
synced 2025-02-18 17:50:16 +01:00
ircd::net: Hit cancel() before any of the disconnect sequences.
This commit is contained in:
parent
fffea204b9
commit
e99b32a176
1 changed files with 1 additions and 1 deletions
|
@ -1311,6 +1311,7 @@ try
|
|||
in.bytes,
|
||||
out.bytes);
|
||||
|
||||
cancel();
|
||||
if(opts.sopts)
|
||||
set(*this, *opts.sopts);
|
||||
|
||||
|
@ -1339,7 +1340,6 @@ try
|
|||
std::bind(&socket::handle_disconnect, this, shared_from(*this), std::move(callback), ph::_1)
|
||||
};
|
||||
|
||||
cancel();
|
||||
set_timeout(opts.timeout);
|
||||
ssl.async_shutdown(std::move(disconnect_handler));
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue