Skip to content

Commit

Permalink
Bump to 1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovenoboyo committed Aug 13, 2021
1 parent 412a8df commit 10df4e5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "discord.rich.presence",
"version": "1.0.4",
"version": "1.0.5",
"description": "",
"main": "src/index.ts",
"extensionEntry": "dist/index.js",
Expand Down
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export class MyExtension implements MoosyncExtensionTemplate {
login()
}

onStopped() {
close()
async onStopped() {
await close()
}

onSongChanged(song: Song | null) {
Expand Down
4 changes: 2 additions & 2 deletions src/rpcHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ export function login() {
rpc.login({ clientId: clientID }).catch(e => logger.error(e))
}

export function close() {
export async function close() {
rpc.clearActivity()
rpc.destroy()
await rpc.destroy()
}

function getStateDetails(song: Song) {
Expand Down

0 comments on commit 10df4e5

Please sign in to comment.