Show protocol name when it is terminated (easier for debugging)

This commit is contained in:
Benau 2018-02-20 13:33:43 +08:00
parent 14b401b54e
commit 22c755a328

View File

@ -305,6 +305,8 @@ void ProtocolManager::terminateProtocol(std::shared_ptr<Protocol> protocol)
opt.unlock();
protocol->setState(PROTOCOL_STATE_TERMINATED);
protocol->terminated();
Log::info("ProtocolManager",
"A %s protocol has been terminated.", typeid(*protocol).name());
} // terminateProtocol
// ----------------------------------------------------------------------------