Skip to content
Snippets Groups Projects
Commit ebdb1297 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Merge branch 'bug/socket-dtor' into 'main'

remove incorrect destructor

See merge request beyondaka/beyond-protocol!78
parents 1dacda50 51fd783f
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