[Libreoffice-commits] online.git: net/Socket.hpp
Ashod Nakashian
ashod.nakashian at collabora.co.uk
Thu Apr 6 07:38:20 UTC 2017
net/Socket.hpp | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit a4176cf2f5deed829ed4e762fddb3429c44c8c91
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date: Thu Apr 6 03:32:21 2017 -0400
wsd: don't invoke poll handler when invalidated
Only during shutdown do we expect a callback
to invalidate the pollSockets, but if it happens
we shouldn't invoke the poll handlers.
Change-Id: I2f56da19aec2f04cc871bd4eae1f93da110e0eb9
Reviewed-on: https://gerrit.libreoffice.org/36189
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 bb08dca1..c726f337 100644
--- a/net/Socket.hpp
+++ b/net/Socket.hpp
@@ -390,6 +390,10 @@ public:
}
}
+ // This should only happen when we're stopping.
+ if (_pollSockets.size() != size)
+ return;
+
// Fire the poll callbacks and remove dead fds.
std::chrono::steady_clock::time_point newNow =
std::chrono::steady_clock::now();
More information about the Libreoffice-commits
mailing list