fix?: don't reset the presence (possible race condition)

This commit is contained in:
iCrawl 2017-11-30 23:43:03 +01:00
parent 97d6422474
commit a52e607296
No known key found for this signature in database
GPG key ID: E41A6DB922EC2CFE

View file

@ -141,8 +141,6 @@ function destroyRPC(): void {
if (activityTimer) clearInterval(activityTimer); if (activityTimer) clearInterval(activityTimer);
// Null the activity timer. // Null the activity timer.
activityTimer = null; activityTimer = null;
// Reset the activity.
rpc.setActivity({});
// Dispose of the event handlers. // Dispose of the event handlers.
eventHandlers.forEach(event => event.dispose()); eventHandlers.forEach(event => event.dispose());
// If there's an RPC Client initalized, destroy it. // If there's an RPC Client initalized, destroy it.