2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-02 23:15:20 +00:00

[#1239] make http client ConnectionPool thread safe

This commit is contained in:
Razvan Becheriu
2020-05-18 16:10:16 +03:00
parent 64a443b937
commit 197fd46d1e

View File

@@ -432,9 +432,9 @@ public:
void closeIfOutOfBandwidth(int socket_fd) {
if (MultiThreadingMgr::instance().getMode()) {
std::lock_guard<std::mutex> lk(mutex_);
closeIfOutOfBandwidth(socket_fd);
closeIfOutOfBandwidthInternal(socket_fd);
} else {
closeIfOutOfBandwidth(socket_fd);
closeIfOutOfBandwidthInternal(socket_fd);
}
}