| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5542a98 commit 7d9f1f3
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -704,8 +704,11 @@ const proxySocketHandler = { | |||
| 704 | 704 | // data received on the PING acknowlegement. | |
| 705 | 705 | function pingCallback(cb) { | |
| 706 | 706 | return function pingCallback(ack, duration, payload) { | |
| 707 | - const err = ack ? null : new ERR_HTTP2_PING_CANCEL(); | ||
| 708 | - cb(err, duration, payload); | ||
| 707 | + if (ack) { | ||
| 708 | + cb(null, duration, payload); | ||
| 709 | + } else { | ||
| 710 | + cb(new ERR_HTTP2_PING_CANCEL()); | ||
| 711 | + } | ||
| 709 | 712 | }; | |
| 710 | 713 | } | |
| 711 | 714 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments