Skip to content

Commit cf610b7

Browse files
Remove timeout hack
1 parent 73fdefe commit cf610b7

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/appshell/internal/startupscenario.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@
2323
#include "startupscenario.h"
2424

2525
#include <QCoreApplication>
26-
#include <QTimer>
2726

2827
#include "async/async.h"
29-
#include "network/networkerrors.h"
3028
#include "translation.h"
3129
#include "log.h"
3230

@@ -39,8 +37,6 @@ static const muse::UriQuery WELCOME_DIALOG_URI("musescore://welcomedialog");
3937
static const muse::Uri HOME_URI("musescore://home");
4038
static const muse::Uri NOTATION_URI("musescore://notation");
4139

42-
static constexpr int CHECK_FOR_UPDATES_TIMEOUT(7500);
43-
4440
static StartupModeType modeTypeTromString(const std::string& str)
4541
{
4642
if ("start-empty" == str) {
@@ -150,19 +146,6 @@ muse::async::Promise<muse::Ret> StartupScenario::runOnSplashScreen()
150146
}
151147
});
152148

153-
// Timeout if the checks take too long...
154-
QTimer::singleShot(CHECK_FOR_UPDATES_TIMEOUT, [this, resolve]() {
155-
if (!m_updateChecksInProgress) {
156-
return;
157-
}
158-
159-
m_updateChecksInProgress = false;
160-
161-
LOGE() << "Update checks timed out...";
162-
const Ret ret = network::make_ret(network::Err::Timeout);
163-
(void)resolve(ret);
164-
});
165-
166149
return muse::async::Promise<Ret>::dummy_result();
167150
});
168151
}

0 commit comments

Comments
 (0)