Fixed bug whereby CSV file was corrupted.

When Device was not available, Realtime was creating a corrupted CSV.
If Device is not availble at startup, the ride file is removed.
This commit is contained in:
Justin Knotzke
2010-11-25 09:00:57 -05:00
parent 0d3caf923a
commit d259f1dbf8
6 changed files with 22 additions and 14 deletions

View File

@@ -81,7 +81,7 @@ void SimpleNetworkController::getRealtimeData(RealtimeData &rtData) {
msgBox.setText("Cannot Connect to peer");
msgBox.setIcon(QMessageBox::Critical);
msgBox.exec();
parent->Stop();
parent->Stop(DEVICE_OK);
}
if (!client.getRealtimeData(data_cache)) {