From 5181ddd67cd52f93e0f9fa4e4e19b8cc6e40883a Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Mon, 14 Sep 2020 16:34:17 -0400 Subject: [PATCH] Move master server presence updates to Advertise_OnChange This will probably call DRPC_UpdatePresence slightly less? --- src/mserv.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/mserv.c b/src/mserv.c index 7adec7ff..ab615711 100644 --- a/src/mserv.c +++ b/src/mserv.c @@ -251,10 +251,6 @@ Finish_update (void) if (! done) Finish_update(); -#ifdef HAVE_DISCORDRPC - else - DRPC_UpdatePresence(); -#endif } static void @@ -288,10 +284,6 @@ Finish_unlist (void) I_wake_all_cond(&MSCond); #endif } - -#ifdef HAVE_DISCORDRPC - DRPC_UpdatePresence(); -#endif } #ifdef HAVE_THREADS @@ -564,4 +556,8 @@ Advertise_OnChange(void) { UnregisterServer(); } + +#ifdef HAVE_DISCORDRPC + DRPC_UpdatePresence(); +#endif }