mirror of
https://git.suyu.dev/suyu/discord-rpc.git
synced 2026-03-10 09:16:29 +00:00
Fix this up a little so we retry a little right after failure.
This commit is contained in:
@@ -34,6 +34,7 @@ extern "C" void Discord_Shutdown()
|
||||
extern "C" void Discord_UpdatePresence(const DiscordRichPresence* presence)
|
||||
{
|
||||
auto frame = MyConnection->GetNextFrame();
|
||||
frame->opcode = OPCODE::FRAME;
|
||||
char* jsonWrite = frame->message;
|
||||
JsonWriteRichPresenceObj(jsonWrite, presence);
|
||||
frame->length = jsonWrite - frame->message;
|
||||
|
||||
Reference in New Issue
Block a user