mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 06:01:12 +00:00
Reduce delay for PCs appearing online
This commit is contained in:
@@ -185,6 +185,13 @@ private:
|
|||||||
if (m_Computer->state == NvComputer::CS_ONLINE &&
|
if (m_Computer->state == NvComputer::CS_ONLINE &&
|
||||||
m_Computer->pairState == NvComputer::PS_PAIRED &&
|
m_Computer->pairState == NvComputer::PS_PAIRED &&
|
||||||
(m_Computer->appList.isEmpty() || pollsSinceLastAppListFetch >= POLLS_PER_APPLIST_FETCH)) {
|
(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)) {
|
if (updateAppList(stateChanged)) {
|
||||||
pollsSinceLastAppListFetch = 0;
|
pollsSinceLastAppListFetch = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user