mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Improve shard downloader status reporting
This commit is contained in:
committed by
Nik Bougalis
parent
56bc2a2ade
commit
08371ba2c4
@@ -152,7 +152,7 @@ bool
|
||||
ServerHandlerImp::onAccept (Session& session,
|
||||
boost::asio::ip::tcp::endpoint endpoint)
|
||||
{
|
||||
std::lock_guard<std::mutex> l(countlock_);
|
||||
std::lock_guard<std::mutex> lock(countlock_);
|
||||
|
||||
auto const c = ++count_[session.port()];
|
||||
|
||||
@@ -363,7 +363,7 @@ void
|
||||
ServerHandlerImp::onClose (Session& session,
|
||||
boost::system::error_code const&)
|
||||
{
|
||||
std::lock_guard<std::mutex> l(countlock_);
|
||||
std::lock_guard<std::mutex> lock(countlock_);
|
||||
--count_[session.port()];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user