Archived
1
Fork 0

fixed bug

This commit is contained in:
Joshua Moerman 2013-04-02 21:06:00 +02:00
parent 418d2fde0c
commit a5ce8b568d

View file

@ -130,8 +130,8 @@ namespace websockets {
break; break;
case LWS_CALLBACK_CLOSED: case LWS_CALLBACK_CLOSED:
if(verbose) lwsl_notice("Connection closed (%p, %p)\n", this, user_ptr); if(verbose) lwsl_notice("Connection closed (%p, %p)\n", this, user_ptr);
user.~user_type();
close_func(user, binfo); close_func(user, binfo);
user.~user_type();
break; break;
case LWS_CALLBACK_SERVER_WRITEABLE:{ case LWS_CALLBACK_SERVER_WRITEABLE:{
std::string string_to_send = write_func(user, binfo); std::string string_to_send = write_func(user, binfo);