Skip to content

Commit

Permalink
testtools/httpserver_p.cpp - my-bad: fix wrong Q_ASSERT on the listen()
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Winter committed May 1, 2017
1 parent 4f03eb4 commit 75d361e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion testtools/httpserver_p.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,9 @@ void HttpServerThread::disableSsl()
void HttpServerThread::run()
{
m_server = new BlockingHttpServer(m_features & Ssl);
Q_ASSERT(m_server->listen());
if (!m_server->listen()) {
qFatal("HttpServerThread::run is unable to listen");
}
QMutexLocker lock(&m_mutex);
m_port = m_server->serverPort();
lock.unlock();
Expand Down

0 comments on commit 75d361e

Please sign in to comment.