Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Move unlock
  • Loading branch information
elpaso committed Mar 5, 2021
1 parent dfc4978 commit 1a311da
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/server/qgis_mapserver.cpp
Expand Up @@ -55,13 +55,6 @@ while QGIS server internal logging is printed to stderr.
// For the signal exit handler
QAtomicInt IS_RUNNING = 1;

// Request sync
//QWaitCondition SERVER_WAIT_CONDITION;
//QMutex SERVER_MUTEX;
// Server sync
//QWaitCondition REQUEST_WAIT_CONDITION;
//QMutex REQUEST_QUEUE_MUTEX;

QString ipAddress;
QString serverPort;

Expand Down Expand Up @@ -315,17 +308,14 @@ class TcpServerWorker: public QObject
} ;
REQUEST_QUEUE_MUTEX.lock();
REQUEST_QUEUE.enqueue( requestContext );
REQUEST_WAIT_CONDITION.notify_one();
REQUEST_QUEUE_MUTEX.unlock();
REQUEST_WAIT_CONDITION.notify_one();
}
}
catch ( HttpException &ex )
{

if ( clientConnection->state() == QAbstractSocket::SocketState::ConnectedState )
{


// Output stream: send error
clientConnection->write( QStringLiteral( "HTTP/1.0 %1 %2\r\n" ).arg( 500 ).arg( knownStatuses.value( 500 ) ).toUtf8() );
clientConnection->write( QStringLiteral( "Server: QGIS\r\n" ).toUtf8() );
Expand All @@ -342,7 +332,6 @@ class TcpServerWorker: public QObject
}
} );
} );

}
}

Expand Down

0 comments on commit 1a311da

Please sign in to comment.