[Libreoffice-commits] online.git: net/Socket.hpp

Ashod Nakashian ashod.nakashian at collabora.co.uk
Mon Apr 10 04:09:39 UTC 2017


 net/Socket.hpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit cdb80e56325ba0b4d9abbd438d085f6c91c75855
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Sun Apr 9 20:56:39 2017 -0400

    wsd: assert valid socket where it counts
    
    Change-Id: I19faa175066cab4e0435f6a8bf29e6b051c86420
    Reviewed-on: https://gerrit.libreoffice.org/36330
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/net/Socket.hpp b/net/Socket.hpp
index d35e8810..46499414 100644
--- a/net/Socket.hpp
+++ b/net/Socket.hpp
@@ -272,12 +272,12 @@ public:
     void removeSockets()
     {
         LOG_DBG("Removing all sockets from " << _name << ".");
-        assert(socket);
         assertCorrectThread();
 
         while (!_pollSockets.empty())
         {
             const std::shared_ptr<Socket>& socket = _pollSockets.back();
+            assert(socket);
 
             LOG_DBG("Removing socket #" << socket->getFD() << " from " << _name);
             socket->assertCorrectThread();


More information about the Libreoffice-commits mailing list