net/Socket.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit cdb80e56325ba0b4d9abbd438d085f6c91c75855
Author: Ashod Nakashian <[email protected]>
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 <[email protected]>
Tested-by: Ashod Nakashian <[email protected]>
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();
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits