Compare commits

..

No commits in common. "main" and "v1.3.3" have entirely different histories.
main ... v1.3.3

1 changed files with 8 additions and 6 deletions

View File

@ -24,18 +24,20 @@ LastFM* lastfm = nullptr;
void handleRPCTasks() {
while (true) {
while (!Discord_IsConnected()) {
DiscordEventHandlers handlers{};
while (true) {
DiscordEventHandlers discordHandler{};
auto app = utils::getApp(lastMediaSource);
Discord_Initialize(app.clientId.c_str(), &handlers);
Discord_Initialize(app.clientId.c_str(), &discordHandler);
if (Discord_IsConnected())
break;
std::this_thread::sleep_for(std::chrono::seconds(1));
}
while (Discord_IsConnected()) {
while (true) {
Discord_RunCallbacks();
if (!Discord_IsConnected())
break;
std::this_thread::sleep_for(std::chrono::seconds(1));
}
Discord_Shutdown();
}
}