mirror of
https://github.com/github/codeql-action.git
synced 2026-04-28 09:58:49 +00:00
Add timeout event handler
This commit is contained in:
Generated
+4
@@ -121751,6 +121751,10 @@ var NetworkReachabilityBackend = class {
|
||||
req.on("error", (e) => {
|
||||
reject(e);
|
||||
});
|
||||
req.on("timeout", () => {
|
||||
req.destroy();
|
||||
reject(new Error("Connection timeout."));
|
||||
});
|
||||
req.end();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user