@konemono/nostr-login 1.7.30 → 1.7.32

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konemono/nostr-login",
3
- "version": "1.7.30",
3
+ "version": "1.7.32",
4
4
  "description": "",
5
5
  "main": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",
@@ -40,6 +40,7 @@ class ProcessManager extends EventEmitter {
40
40
  if (!this.callTimer) {
41
41
  this.callTimer = setTimeout(() => {
42
42
  console.log('ProcessManager: timeout reached, emitting onCallTimeout');
43
+ this.callTimer = undefined; // タイムアウト時にタイマーIDをクリア
43
44
  this.emit('onCallTimeout');
44
45
  }, CALL_TIMEOUT);
45
46
  console.log(`Setting up timeout timer for ${CALL_TIMEOUT} ms`);
@@ -61,14 +62,12 @@ class ProcessManager extends EventEmitter {
61
62
  }
62
63
 
63
64
  this.callCount--;
64
-
65
65
  this.emit('onCallEnd');
66
66
 
67
67
  if (this.callTimer) {
68
68
  clearTimeout(this.callTimer);
69
69
  }
70
-
71
- this.callTimer = undefined;
70
+ this.callTimer = undefined; // ProcessManager のタイマーIDもここでクリア
72
71
 
73
72
  if (error) {
74
73
  throw error;