From 43010c94a472d61322269732d342e488b8a79459 Mon Sep 17 00:00:00 2001 From: Rodrigo Gonzalez Date: Mon, 23 Jan 2017 18:41:48 -0300 Subject: [PATCH] Add timeout option support --- lib/sandbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sandbox.js b/lib/sandbox.js index 314f606..304a8b9 100644 --- a/lib/sandbox.js +++ b/lib/sandbox.js @@ -21,7 +21,7 @@ function Sandbox(options) { self._message_queue = []; self.options = { - timeout: 500, + timeout: parseInt(options.timeout, 10) || 500, node: 'node', shovel: path.join(__dirname, 'shovel.js') };