diff --git a/src/ripple_app/websocket/WSConnection.h b/src/ripple_app/websocket/WSConnection.h index 8c2f12c68..101139ab3 100644 --- a/src/ripple_app/websocket/WSConnection.h +++ b/src/ripple_app/websocket/WSConnection.h @@ -124,17 +124,14 @@ public: void disconnect () { connection_ptr ptr = m_connection.lock (); - - if (ptr) - { - m_io_service.dispatch (ptr->get_strand ().wrap (boost::bind ( - &WSConnectionType ::handle_disconnect, m_connection))); - } + m_io_service.dispatch (ptr->get_strand ().wrap (boost::bind ( + &WSConnectionType ::handle_disconnect, + m_connection))); } - void handle_disconnect() + static void handle_disconnect(weak_connection_ptr c) { - connection_ptr ptr = m_connection.lock (); + connection_ptr ptr = c.lock (); if (ptr) ptr->close (websocketpp::close::status::PROTOCOL_ERROR, "overload"); diff --git a/src/ripple_data/protocol/BuildInfo.cpp b/src/ripple_data/protocol/BuildInfo.cpp index 9059d889d..859319147 100644 --- a/src/ripple_data/protocol/BuildInfo.cpp +++ b/src/ripple_data/protocol/BuildInfo.cpp @@ -12,7 +12,7 @@ char const* BuildInfo::getRawVersionString () // // The build version number (edit this for each release) // - "0.13.0-rc1" + "0.13.0-rc2" // // Must follow the format described here: //