mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-26 04:11:18 +00:00
Move master server presence updates to Advertise_OnChange
This will probably call DRPC_UpdatePresence slightly less?
This commit is contained in:
parent
18adf478ca
commit
5181ddd67c
1 changed files with 4 additions and 8 deletions
12
src/mserv.c
12
src/mserv.c
|
@ -251,10 +251,6 @@ Finish_update (void)
|
||||||
|
|
||||||
if (! done)
|
if (! done)
|
||||||
Finish_update();
|
Finish_update();
|
||||||
#ifdef HAVE_DISCORDRPC
|
|
||||||
else
|
|
||||||
DRPC_UpdatePresence();
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -288,10 +284,6 @@ Finish_unlist (void)
|
||||||
I_wake_all_cond(&MSCond);
|
I_wake_all_cond(&MSCond);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_DISCORDRPC
|
|
||||||
DRPC_UpdatePresence();
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_THREADS
|
#ifdef HAVE_THREADS
|
||||||
|
@ -564,4 +556,8 @@ Advertise_OnChange(void)
|
||||||
{
|
{
|
||||||
UnregisterServer();
|
UnregisterServer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_DISCORDRPC
|
||||||
|
DRPC_UpdatePresence();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue