mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 04:12:45 +00:00 
			
		
		
		
	Remove timeout in cqi js
This commit is contained in:
		@@ -22,14 +22,15 @@ cqi.api.APIClient = class APIClient {
 | 
			
		||||
  /**
 | 
			
		||||
   * @param {string} fn_name
 | 
			
		||||
   * @param {object} [fn_args={}]
 | 
			
		||||
   * @returns {Promise<cqi.status.StatusConnectOk>}
 | 
			
		||||
   * @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);
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user