mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 07:04:37 +02:00
parent
f57bd0b38c
commit
31786fdaa1
@ -195,7 +195,8 @@ void SocketEvents::Unregister(void)
|
|||||||
|
|
||||||
void SocketEvents::ChangeEvents(int events)
|
void SocketEvents::ChangeEvents(int events)
|
||||||
{
|
{
|
||||||
ASSERT(m_FD != INVALID_SOCKET);
|
if (m_FD == INVALID_SOCKET)
|
||||||
|
BOOST_THROW_EXCEPTION(std::runtime_error("Tried to read/write from a closed socket."));
|
||||||
|
|
||||||
{
|
{
|
||||||
boost::mutex::scoped_lock lock(l_SocketIOMutex);
|
boost::mutex::scoped_lock lock(l_SocketIOMutex);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user