Skip to content

Commit

Permalink
RMG: also set transfer timeout for update check
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosalie241 committed Dec 30, 2024
1 parent 6636489 commit ae5b141
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/RMG/UserInterface/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1174,6 +1174,7 @@ void MainWindow::checkForUpdates(bool silent, bool force)
// execute update check
QNetworkAccessManager* networkAccessManager = new QNetworkAccessManager(this);
connect(networkAccessManager, &QNetworkAccessManager::finished, this, &MainWindow::on_networkAccessManager_Finished);
networkAccessManager->setTransferTimeout(15000);
networkAccessManager->get(QNetworkRequest(QUrl("https://api.github.com/repos/Rosalie241/RMG/releases/latest")));
}
#endif // UPDATER
Expand Down

0 comments on commit ae5b141

Please sign in to comment.