| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent fffd8a7 commit 474f06d
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -750,7 +750,8 @@ class ProbeInspectorSession { | |||
| 750 | 750 | ||
| 751 | 751 | async callCdp(method, params, probe = null) { | |
| 752 | 752 | if (this.finished) { throw kInspectorFailedSentinel; } | |
| 753 | - this.inFlight = { __proto__: null, method, probe }; | ||
| 753 | + const request = { __proto__: null, method, probe }; | ||
| 754 | + this.inFlight = request; | ||
| 754 | 755 | debug('CDP -> %s%s', method, probe !== null ? `, probe=${probe.index}` : ''); | |
| 755 | 756 | try { | |
| 756 | 757 | const result = await this.client.callMethod(method, params); | |
@@ -806,7 +807,9 @@ class ProbeInspectorSession { | |||
| 806 | 807 | } | |
| 807 | 808 | throw kInspectorFailedSentinel; | |
| 808 | 809 | } finally { | |
| 809 | - this.inFlight = null; | ||
| 810 | + if (this.inFlight === request) { | ||
| 811 | + this.inFlight = null; | ||
| 812 | + } | ||
| 810 | 813 | } | |
| 811 | 814 | } | |
| 812 | 815 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments