Fix in segfault
This commit is contained in:
parent
a9d10c5a72
commit
aca43c48b1
1 changed files with 0 additions and 3 deletions
|
@ -5,7 +5,6 @@
|
|||
class user{
|
||||
public:
|
||||
user(SWBaseSocket * newConn);
|
||||
~user();
|
||||
void disconnect(std::string reason);
|
||||
void Send(buffer ** ringbuf, int buffers);
|
||||
bool is_connected;
|
||||
|
@ -20,8 +19,6 @@ user::user(SWBaseSocket * newConn) {
|
|||
is_connected = (Conn != 0);
|
||||
}
|
||||
|
||||
user::~user(){disconnect("Destroying object");}
|
||||
|
||||
void user::disconnect(std::string reason) {
|
||||
if (Conn) {
|
||||
Conn->disconnect();
|
||||
|
|
Loading…
Add table
Reference in a new issue