Merge pull request #2415 from Trial97/configure_timeout
Add config for transfer timeout
This commit is contained in:
commit
fc445078cd
4 changed files with 29 additions and 5 deletions
|
@ -107,7 +107,11 @@ void NetRequest::executeTask()
|
|||
}
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
|
||||
#if defined(LAUNCHER_APPLICATION)
|
||||
request.setTransferTimeout(APPLICATION->settings()->get("RequestTimeout").toInt() * 1000);
|
||||
#else
|
||||
request.setTransferTimeout();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
m_last_progress_time = m_clock.now();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue