mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-21 15:57:12 +00:00
Reduce delay for PCs appearing online
This commit is contained in:
1 parent
a2eece0f5c
commit
7ac108f495
1 file changed
+7
@@ -185,6 +185,13 @@ private:
|
||||
if (m_Computer->state == NvComputer::CS_ONLINE &&
|
||||
m_Computer->pairState == NvComputer::PS_PAIRED &&
|
||||
(m_Computer->appList.isEmpty() || pollsSinceLastAppListFetch >= POLLS_PER_APPLIST_FETCH)) {
|
||||
// Notify prior to the app list poll since it may take a while, and we don't
|
||||
// want to delay onlining of a machine, especially if we already have a cached list.
|
||||
if (stateChanged) {
|
||||
emit computerStateChanged(m_Computer);
|
||||
stateChanged = false;
|
||||
}
|
||||
|
||||
if (updateAppList(stateChanged)) {
|
||||
pollsSinceLastAppListFetch = 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user