mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-14 13:51:31 +00:00
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:
commit
85726d7a55
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)
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue