From 1eabf18b13a1d3254d4b26f3b2668b556a2d9ec2 Mon Sep 17 00:00:00 2001
From: Patrick Jentsch
Date: Mon, 3 Jul 2023 11:17:07 +0200
Subject: [PATCH] Remove timeout in cqi js
---
app/static/js/cqi/api/client.js | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/app/static/js/cqi/api/client.js b/app/static/js/cqi/api/client.js
index 6e18a37e..c6c7e5b9 100644
--- a/app/static/js/cqi/api/client.js
+++ b/app/static/js/cqi/api/client.js
@@ -22,14 +22,15 @@ cqi.api.APIClient = class APIClient {
/**
* @param {string} fn_name
* @param {object} [fn_args={}]
- * @returns {Promise}
+ * @returns {Promise}
*/
#request(fn_name, fn_args = {}) {
return new Promise((resolve, reject) => {
- this.socket.timeout(this.timeout).emit('cqi', {fn_name: fn_name, fn_args: fn_args}, (timeoutError, response) => {
- if (timeoutError) {
- reject(timeoutError);
- }
+ // this.socket.timeout(this.timeout).emit('cqi', {fn_name: fn_name, fn_args: fn_args}, (timeoutError, response) => {
+ // if (timeoutError) {
+ // reject(timeoutError);
+ // }
+ this.socket.emit('cqi', {fn_name: fn_name, fn_args: fn_args}, (response) => {
if (response.code === 200) {
resolve(response.payload);
}