core-3nweb-client-lib 0.43.1 → 0.43.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.
@@ -451,7 +451,7 @@ class EventsReceivingSide extends RequestingSide {
451
451
  * name, to which listener is attached.
452
452
  */
453
453
  this.listeners = new map_of_sets_1.MapOfSets();
454
- this.channels = new IpcEventChannels(ipcChannel => this.makeRequest(SUBSCRIBE_REQ_NAME, ipcChannel).catch(err => this.completeEvent(ipcChannel, err)), ipcChannel => this.makeRequest(UNSUBSCRIBE_REQ_NAME, ipcChannel).catch(_ => { }));
454
+ this.channels = new IpcEventChannels(ipcChannel => this.makeRequest(SUBSCRIBE_REQ_NAME, ipcChannel), ipcChannel => this.makeRequest(UNSUBSCRIBE_REQ_NAME, ipcChannel).catch(_ => { }));
455
455
  }
456
456
  handleMsg(env) {
457
457
  if (env.type === 'event') {
@@ -591,7 +591,13 @@ class IpcEventChannels {
591
591
  return;
592
592
  }
593
593
  this.subscribedIpcChannels.add(ipcChannel);
594
- await this.subscribe(ipcChannel);
594
+ try {
595
+ await this.subscribe(ipcChannel);
596
+ }
597
+ catch (err) {
598
+ this.subscribedIpcChannels.delete(ipcChannel);
599
+ throw err;
600
+ }
595
601
  });
596
602
  }
597
603
  async unsubscribeFrom(ipcChannel) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "core-3nweb-client-lib",
3
- "version": "0.43.1",
3
+ "version": "0.43.2",
4
4
  "description": "3NWeb client core library, embeddable into different environments",
5
5
  "main": "build/lib-index.js",
6
6
  "types": "build/lib-index.d.ts",