From a5ce8b568db169635cbfc58eee7454cf1727b1a5 Mon Sep 17 00:00:00 2001 From: Joshua Moerman Date: Tue, 2 Apr 2013 21:06:00 +0200 Subject: [PATCH] fixed bug --- src/websockets.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/websockets.h b/src/websockets.h index 1882875..a5323f4 100644 --- a/src/websockets.h +++ b/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);