mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-08-12 04:35:41 +08:00
Fixes when dealing with refs #223 / https://dev.vatsim-germany.org/boards/22/topics/1691?r=1701#message-1701
* Wrong address split ip:port * Q_ASSERTs
This commit is contained in:
@@ -34,7 +34,8 @@ int main(int argc, char *argv[])
|
||||
qDebug() << "3 + la/ra .. P2P DBus server";
|
||||
qDebug() << "la .. local audio, audio runs in this core here (default)";
|
||||
qDebug() << "ra .. remote audio, audio runs in the GUI or elsewhere";
|
||||
QString input = cin.readLine().toLower();
|
||||
qDebug() << "x .. exit";
|
||||
QString input = cin.readLine().toLower().trimmed();
|
||||
|
||||
// configure DBus server
|
||||
QString dBusAddress = BlackCore::CDBusServer::sessionDBusServer();
|
||||
@@ -47,6 +48,10 @@ int main(int argc, char *argv[])
|
||||
dBusAddress = cin.readLine().toLower();
|
||||
dBusAddress = BlackCore::CDBusServer::p2pAddress(dBusAddress);
|
||||
}
|
||||
else if (input.startsWith("x"))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// with remote audio
|
||||
bool remoteAudio = input.contains("ra");
|
||||
|
||||
Reference in New Issue
Block a user