From a01db40e278431102f1fa6df6c35f0ceb17d05c5 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Mon, 6 Aug 2018 11:12:37 -0700 Subject: [PATCH] Ensure that a SQL command timeout results in an error --- js/modules/data.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/modules/data.js b/js/modules/data.js index 04d5300d8..2aae4d14a 100644 --- a/js/modules/data.js +++ b/js/modules/data.js @@ -178,8 +178,8 @@ function makeChannel(fnName) { }); setTimeout( - () => resolve(new Error(`Request to ${fnName} timed out`)), - 5000 + () => reject(new Error(`Request to ${fnName} timed out`)), + 10000 ); }); };