This commit is contained in:
hatim boufnichel 2024-04-24 20:54:34 +02:00
parent f2b18239a8
commit 5b6ed3569d

View file

@ -379,12 +379,8 @@ export default class {
console.log("message", message) console.log("message", message)
switch (message.update.oneofKind) { switch (message.update.oneofKind) {
case 'chanPending': case 'chanPending':
abortController.abort()
res(Buffer.from(message.pendingChanId).toString('base64')) res(Buffer.from(message.pendingChanId).toString('base64'))
break break
default:
abortController.abort()
rej("unexpected state response: " + message.update.oneofKind)
} }
}) })
stream.responses.onError(error => { stream.responses.onError(error => {