From 04f4aab1a96c6c0cdb3ce934f2e98eb9e31c83c4 Mon Sep 17 00:00:00 2001 From: Peter Thorson Date: Tue, 23 Apr 2013 13:23:15 -0500 Subject: [PATCH] default connection close status is the abnormal close rather than 0 --- websocketpp/connection.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/websocketpp/connection.hpp b/websocketpp/connection.hpp index c4f79a083e..11d05588df 100644 --- a/websocketpp/connection.hpp +++ b/websocketpp/connection.hpp @@ -180,6 +180,8 @@ public: , m_alog(alog) , m_elog(elog) , m_rng(rng) + , m_local_close_code(close::status::abnormal_close) + , m_remote_close_code(close::status::abnormal_close) { m_alog.write(log::alevel::devel,"connection constructor"); }