Skip to content

Commit 1ae27fc

Browse files
Make sure to clear array
1 parent 5f48cfd commit 1ae27fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/JSONRPC/JSONRPCSession.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ public actor JSONRPCSession {
115115
responder(.failure(ProtocolTransportError.dataStreamClosed))
116116
}
117117

118+
self.responders.removeAll()
118119
channelClosed = true
119120
}
120121

0 commit comments

Comments
 (0)