Skip to content

Commit

Permalink
fix: create new socket if socket state is 'closing' (openwallet-found…
Browse files Browse the repository at this point in the history
…ation#1337)

Signed-off-by: Niall Shaw <niall.shaw@absa.africa>
  • Loading branch information
niall-shaw authored Feb 24, 2023
1 parent cac2ec3 commit da8f2ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/transport/WsOutboundTransport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class WsOutboundTransport implements OutboundTransport {
// If we already have a socket connection use it
let socket = this.transportTable.get(socketId)

if (!socket) {
if (!socket || socket.readyState === this.WebSocketClass.CLOSING) {
if (!endpoint) {
throw new AriesFrameworkError(`Missing endpoint. I don't know how and where to send the message.`)
}
Expand Down

0 comments on commit da8f2ad

Please sign in to comment.