mirror of
https://github.com/LibreOffice/online.git
synced 2025-08-20 23:24:34 +00:00
wsd: assert valid socket where it counts
Change-Id: I19faa175066cab4e0435f6a8bf29e6b051c86420 Reviewed-on: https://gerrit.libreoffice.org/36330 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com>
This commit is contained in:

committed by
Ashod Nakashian

parent
679a39eb0b
commit
cdb80e5632
@ -272,12 +272,12 @@ public:
|
|||||||
void removeSockets()
|
void removeSockets()
|
||||||
{
|
{
|
||||||
LOG_DBG("Removing all sockets from " << _name << ".");
|
LOG_DBG("Removing all sockets from " << _name << ".");
|
||||||
assert(socket);
|
|
||||||
assertCorrectThread();
|
assertCorrectThread();
|
||||||
|
|
||||||
while (!_pollSockets.empty())
|
while (!_pollSockets.empty())
|
||||||
{
|
{
|
||||||
const std::shared_ptr<Socket>& socket = _pollSockets.back();
|
const std::shared_ptr<Socket>& socket = _pollSockets.back();
|
||||||
|
assert(socket);
|
||||||
|
|
||||||
LOG_DBG("Removing socket #" << socket->getFD() << " from " << _name);
|
LOG_DBG("Removing socket #" << socket->getFD() << " from " << _name);
|
||||||
socket->assertCorrectThread();
|
socket->assertCorrectThread();
|
||||||
|
Reference in New Issue
Block a user