# HG changeset patch # User Wuzzy # Date 1532020299 -7200 # Node ID 4c5c8a83e29881d60436fe09ad63520a957f175c # Parent b62b14aa88d4acce6b0d2f7b99aa9097622ec139 Fix crash when aborting encoding phase of video recording in videos page if >1 video is being encoded diff -r b62b14aa88d4 -r 4c5c8a83e298 QTfrontend/net/tcpBase.cpp --- a/QTfrontend/net/tcpBase.cpp Thu Jul 19 14:01:57 2018 +0200 +++ b/QTfrontend/net/tcpBase.cpp Thu Jul 19 19:11:39 2018 +0200 @@ -251,9 +251,15 @@ void TCPBase::tcpServerReady() { - disconnect(srvsList.first(), SIGNAL(isReadyNow()), this, SLOT(tcpServerReady())); - - RealStart(); + if (!srvsList.isEmpty()) + { + disconnect(srvsList.first(), SIGNAL(isReadyNow()), this, SLOT(tcpServerReady())); + RealStart(); + } + else + { + qDebug("tcpServerReady() called while srvsList was empty. Not starting TCP server"); + } } void TCPBase::Start(bool couldCancelPreviousRequest)