Skip to content

Commit

Permalink
spellok
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Mar 12, 2021
1 parent 5820a49 commit 3f3435a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/server/qgis_mapserver.cpp
Expand Up @@ -357,7 +357,7 @@ class TcpServerWorker: public QObject
public slots:

// Outgoing connection handler
void responseReady( RequestContext *requestContext )
void responseReady( RequestContext *requestContext ) //#spellok
{
std::unique_ptr<RequestContext> request { requestContext };
auto elapsedTime { std::chrono::steady_clock::now() - request->startTime };
Expand Down Expand Up @@ -426,10 +426,10 @@ class TcpServerThread: public QThread
{
}

void emitResponseReady( RequestContext *requestContext )
void emitResponseReady( RequestContext *requestContext ) //#spellok
{
if ( requestContext->clientConnection )
emit responseReady( requestContext );
emit responseReady( requestContext ); //#spellok
}

void run( )
Expand All @@ -442,14 +442,14 @@ class TcpServerThread: public QThread
else
{
// Forward signal to worker
connect( this, &TcpServerThread::responseReady, &worker, &TcpServerWorker::responseReady );
connect( this, &TcpServerThread::responseReady, &worker, &TcpServerWorker::responseReady ); //#spellok
QThread::run();
}
}

signals:

void responseReady( RequestContext *requestContext );
void responseReady( RequestContext *requestContext ); //#spellok
void serverError( );

private:
Expand Down Expand Up @@ -638,7 +638,7 @@ int main( int argc, char *argv[] )
return;
}
if ( requestContext->clientConnection && requestContext->clientConnection->isValid() )
tcpServerThread.emitResponseReady( requestContext );
tcpServerThread.emitResponseReady( requestContext ); //#spellok
else
delete requestContext;
} );
Expand Down

0 comments on commit 3f3435a

Please sign in to comment.