mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
set detailed error code on terminate
This commit is contained in:
@@ -1349,6 +1349,7 @@ void connection<config>::terminate(const lib::error_code & ec) {
|
||||
|
||||
terminate_status tstat = unknown;
|
||||
if (ec) {
|
||||
m_ec = ec;
|
||||
m_local_close_code = close::status::abnormal_close;
|
||||
m_local_close_reason = ec.message();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user