Remove is_init() check on each log call

This commit is contained in:
Chris Love
2021-09-04 19:29:56 -07:00
parent 497fa60f57
commit 2e66a27081
3 changed files with 5 additions and 16 deletions

View File

@@ -52,14 +52,9 @@ public:
return true;
}
bool is_init() const
{
return socket_ != -1;
}
void close()
{
if (is_init())
if (socket_ != -1)
{
::close(socket_);
socket_ = -1;