loolwsd/LOOLSession.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit 238e674ba965955d5578b7c01fc10763c9f07db4 Author: Henry Castro <hcas...@collabora.com> Date: Thu Nov 19 07:22:59 2015 -0400 loolwsd: avoid double socket shutdown This cause abnormal socket close diff --git a/loolwsd/LOOLSession.cpp b/loolwsd/LOOLSession.cpp index ff0b316..9f64f81 100644 --- a/loolwsd/LOOLSession.cpp +++ b/loolwsd/LOOLSession.cpp @@ -186,8 +186,7 @@ MasterProcessSession::MasterProcessSession(std::shared_ptr<WebSocket> ws, Kind k MasterProcessSession::~MasterProcessSession() { std::cout << Util::logPrefix() << "MasterProcessSession dtor this=" << this << " _peer=" << _peer.lock().get() << std::endl; - if (_ws) - Util::shutdownWebSocket(*_ws); + auto peer = _peer.lock(); if (_kind == Kind::ToClient && peer) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits