@solana/web3.js 1.32.1 → 1.32.2

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.
package/lib/index.iife.js CHANGED
@@ -22430,7 +22430,14 @@ var solanaWeb3 = (function (exports) {
22430
22430
  this._rpcWebSocketIdleTimeout = setTimeout(() => {
22431
22431
  this._rpcWebSocketIdleTimeout = null;
22432
22432
 
22433
- this._rpcWebSocket.close();
22433
+ try {
22434
+ this._rpcWebSocket.close();
22435
+ } catch (err) {
22436
+ // swallow error if socket has already been closed.
22437
+ if (err instanceof Error) {
22438
+ console.log(`Error when closing socket connection: ${err.message}`);
22439
+ }
22440
+ }
22434
22441
  }, 500);
22435
22442
  }
22436
22443