mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-21 23:56:54 +02:00
Add unit test for opening/closing RemoteSyslogChannel
This commit is contained in:
@@ -89,8 +89,8 @@ void RemoteSyslogChannel::open()
|
||||
{
|
||||
if (_open) return;
|
||||
|
||||
// reset socket for the case that it has been previously closed
|
||||
_socket = DatagramSocket();
|
||||
// reset socket for the case that it has been previously closed
|
||||
_socket = DatagramSocket();
|
||||
|
||||
if (_logHost.find(':') != std::string::npos)
|
||||
_socketAddress = SocketAddress(_logHost);
|
||||
@@ -108,8 +108,8 @@ void RemoteSyslogChannel::open()
|
||||
_host = _socket.address().host().toString();
|
||||
}
|
||||
}
|
||||
|
||||
_open = true;
|
||||
|
||||
_open = true;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user