smoldot 2.0.14 → 2.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -137,9 +137,10 @@ function connectToInstanceServer(config) {
137
137
  case "json-rpc-response": {
138
138
  const queue = state.jsonRpcResponses.get(message.chainId);
139
139
  // The chain might have been removed locally in the past.
140
- if (queue)
140
+ if (queue) {
141
141
  queue.push(message.response);
142
- config.eventCallback({ ty: "json-rpc-responses-non-empty", chainId: message.chainId });
142
+ config.eventCallback({ ty: "json-rpc-responses-non-empty", chainId: message.chainId });
143
+ }
143
144
  return;
144
145
  }
145
146
  }