forked from qt-creator/qt-creator
Maemo: Check whether UTFS server could actually connect.
This commit is contained in:
@@ -301,7 +301,8 @@ void MaemoRemoteMounter::startUtfsServers()
|
|||||||
<< (m_connection->connectionParameters().host + QLatin1Char(':') + port)
|
<< (m_connection->connectionParameters().host + QLatin1Char(':') + port)
|
||||||
<< mountSpec.localDir;
|
<< mountSpec.localDir;
|
||||||
utfsServerProc->start(utfsServer(), utfsServerArgs);
|
utfsServerProc->start(utfsServer(), utfsServerArgs);
|
||||||
if (!utfsServerProc->waitForStarted()) {
|
if (!utfsServerProc->waitForStarted()
|
||||||
|
|| !utfsServerProc->waitForFinished(5000)) {
|
||||||
const QByteArray &errorOutput
|
const QByteArray &errorOutput
|
||||||
= utfsServerProc->readAllStandardError();
|
= utfsServerProc->readAllStandardError();
|
||||||
QString errorMsg = tr("Could not start UTFS server: %1")
|
QString errorMsg = tr("Could not start UTFS server: %1")
|
||||||
@@ -313,7 +314,6 @@ void MaemoRemoteMounter::startUtfsServers()
|
|||||||
emit error(errorMsg);
|
emit error(errorMsg);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
utfsServerProc->waitForFinished();
|
|
||||||
m_utfsServers << utfsServerProc;
|
m_utfsServers << utfsServerProc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user