From a52e607296ff7bc773016cbb242b99a4c25bd535 Mon Sep 17 00:00:00 2001 From: iCrawl Date: Thu, 30 Nov 2017 23:43:03 +0100 Subject: [PATCH] fix?: don't reset the presence (possible race condition) --- src/extension.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/extension.ts b/src/extension.ts index ceebe94..6098a39 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -141,8 +141,6 @@ function destroyRPC(): void { if (activityTimer) clearInterval(activityTimer); // Null the activity timer. activityTimer = null; - // Reset the activity. - rpc.setActivity({}); // Dispose of the event handlers. eventHandlers.forEach(event => event.dispose()); // If there's an RPC Client initalized, destroy it.