Updated discord-rpc, changed ad hoc fix to api fix.

This commit is contained in:
Daniel Scalzi committed 2018-06-03 15:35:39 -04:00
1 parent 74a60a61c2
commit 97e9c15baf
3 files changed
+31 -32

No files matched your search

+1 -2
View File
@@ -42,8 +42,7 @@ exports.updateDetails = function(details){
exports.shutdownRPC = function(){
if(!rpc) return
// Workaround until discord rpc releases clearActivity()
rpc.request('SET_ACTIVITY', {pid: process.pid})
rpc.clearActivity()
rpc.destroy()
rpc = null
activity = null