Skip to content
Permalink
Browse files

Merge pull request #36627 from elpaso/server-standalone-processevents…

…-workaround

Dev server workaround for processEvents
  • Loading branch information
elpaso committed May 22, 2020
2 parents 5aea8ed + 8c76c51 commit 12dd3ef6ce30f4551c1f875827e8f820c6177435
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/server/qgis_mapserver.cpp
@@ -259,7 +259,7 @@ int main( int argc, char *argv[] )
};

// This will delete the connection when disconnected before ready read is called
clientConnection->connect( clientConnection, &QAbstractSocket::disconnected, context, connectionDeleter );
clientConnection->connect( clientConnection, &QAbstractSocket::disconnected, context, connectionDeleter, Qt::QueuedConnection );

// Incoming connection parser
clientConnection->connect( clientConnection, &QIODevice::readyRead, context, [ =, &server, &connCounter ] {
@@ -380,7 +380,7 @@ int main( int argc, char *argv[] )
if ( clientConnection->state() == QAbstractSocket::SocketState::ConnectedState )
{
clientConnection->connect( clientConnection, &QAbstractSocket::disconnected,
clientConnection, connectionDeleter );
clientConnection, connectionDeleter, Qt::QueuedConnection );
}
else
{
@@ -450,7 +450,7 @@ int main( int argc, char *argv[] )
clientConnection->disconnectFromHost();
}

} );
}, Qt::QueuedConnection );

} );

0 comments on commit 12dd3ef

Please sign in to comment.
You can’t perform that action at this time.