Browse Source

fixed bug

master
Joshua Moerman 12 years ago
parent
commit
a5ce8b568d
  1. 2
      src/websockets.h

2
src/websockets.h

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