You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wasmClientDisconnect takes a function that's called when the disconnect has concluded, but lnc-web doesn't use it.
As a result, consumers end up needing to do something like this:
lnc.disconnect()logger.info('disconnecting after:',`payment_hash=${hash}`)// wait for lnc to disconnect before releasing the mutexawaitnewPromise((resolve,reject)=>{letcounter=0constinterval=setInterval(()=>{if(lnc.isConnected){if(counter++>100){logger.error('failed to disconnect from lnc')clearInterval(interval)reject(newError('failed to disconnect from lnc'))}return}clearInterval(interval)resolve()})},50)
wasmClientDisconnect
takes a function that's called when the disconnect has concluded, butlnc-web
doesn't use it.As a result, consumers end up needing to do something like this:
Happy to create a PR myself to the effect of
... if it makes sense
The text was updated successfully, but these errors were encountered: