harmonyland / discord_rpc

Discord RPC module for Deno.
https://deno.land/x/discord_rpc
MIT License
14 stars 3 forks source link

fix: reject promises when ipc send fails #9

Closed NextFire closed 2 years ago

NextFire commented 2 years ago

It was currently impossible to catch the Broken pipe error when setting an activity just after the user closed his Discord client. Rejecting the promises in sendCommand fixes it.

littledivy commented 2 years ago

There seems to be some issues on Deno canary. https://github.com/harmonyland/discord_rpc/runs/5084712994?check_suite_focus=true

cc @DjDeveloperr