Commit ce217158 authored by Léo-Paul Géneau's avatar Léo-Paul Géneau 👾

software/js-drone: reduce connection timeout to 5 seconds

parent 5d5fa7e4
...@@ -30,7 +30,7 @@ md5sum = 7d063b33dbdd7548e2a23bc4d8a66a43 ...@@ -30,7 +30,7 @@ md5sum = 7d063b33dbdd7548e2a23bc4d8a66a43
[main] [main]
_update_hash_filename_ = drone-scripts/main.js.jinja _update_hash_filename_ = drone-scripts/main.js.jinja
md5sum = 42b7dd4866c405ea4b3d7384f0d0f6c7 md5sum = 949a76094b502f831b10c2bc1dd75f95
[pubsub] [pubsub]
_update_hash_filename_ = drone-scripts/pubsub.js.jinja _update_hash_filename_ = drone-scripts/pubsub.js.jinja
......
...@@ -66,7 +66,7 @@ import { exit, open } from "std"; ...@@ -66,7 +66,7 @@ import { exit, open } from "std";
var address = configuration.autopilotIp + ":" + configuration.autopilotPort; var address = configuration.autopilotIp + ":" + configuration.autopilotPort;
console.log("Will connect to", address); console.log("Will connect to", address);
exitOnFail( exitOnFail(
start(configuration.autopilotIp, configuration.autopilotPort, LOG_FILE, 60), start(configuration.autopilotIp, configuration.autopilotPort, LOG_FILE, 5),
"Failed to connect to " + address "Failed to connect to " + address
); );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment