mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-02 05:27:47 +00:00
MtService: fixed crash on disconnect last expert in MT terminal
This commit is contained in:
@@ -107,6 +107,12 @@ void MtConnection::OnRead(
|
||||
return;
|
||||
}
|
||||
|
||||
if (ec == boost::asio::error::eof)
|
||||
{
|
||||
log_.Info("%s: %s. Remote peer gracefully closes the connection.", __FUNCTION__, ec.message().c_str());
|
||||
return;
|
||||
}
|
||||
|
||||
if (ec)
|
||||
{
|
||||
log_.Error("%s: %s", __FUNCTION__, ec.message().c_str());
|
||||
|
||||
Reference in New Issue
Block a user