project-serum / sol-wallet-adapter

Other
185 stars 93 forks source link

Fix dangling handlers caused by disconnecting #23

Closed jhlx closed 3 years ago

jhlx commented 3 years ago

Previously, left dangling handlers when disconnecting. This caused a bug when a Dapp supports two different sol-wallet-adapter-based wallets (e.g. sollet.io and the sollet extension) where disconnecting from one and connecting to the other causes incoming messages to still be processed by the disconnected one.