Merge branch 'advertisement-for-rpc' into 'master'

Move master server presence updates to Advertise_OnChange

See merge request KartKrew/Kart-Public!227
This commit is contained in:
Sal 2020-09-15 16:22:32 -04:00
commit 85726d7a55

View file

@ -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
} }