|
@ -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); |
|
|