Skip to content
Snippets Groups Projects
Commit 51fd783f authored by Sebastian Hahta's avatar Sebastian Hahta
Browse files

remove incorrect destructor

parent 1dacda50
No related branches found
No related tags found
No related merge requests found
......@@ -14,11 +14,6 @@
#include "socket_linux.cpp"
#endif
Socket::~Socket() {
LOG_IF(ERROR, !(is_valid() || is_closed())) << "socket wrapper destroyed before socket is closed";
DCHECK(is_valid() || is_closed());
}
bool Socket::is_open() { return status_ == STATUS::OPEN; }
bool Socket::is_closed() { return status_ == STATUS::CLOSED; }
......
......@@ -30,7 +30,6 @@ class Socket {
public:
Socket(int domain, int type, int protocol);
~Socket();
bool is_valid();
bool is_open();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment