Skip to content

Commit

Permalink
fix: Remove duplicated thread while trying to connect to GAMA
Browse files Browse the repository at this point in the history
  • Loading branch information
RoiArthurB committed Nov 27, 2024
1 parent d791824 commit bfe8dbb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/api/gama_connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class GamaConnector {
};
};

/**
/**
* Allow to control gama execution
* @param {string} type - Only accepted values: [stop, pause, play]
* @returns {{exp_id: string, type: string}}
Expand Down Expand Up @@ -233,9 +233,7 @@ class GamaConnector {
} else {
console.error('[GAMA CONNECTOR] Connection with Gama Server interrupted suddenly');
this.gama_socket = null;

console.warn("[GAMA CONNECTOR] Reconnecting in 5s...");
setTimeout(() => this.connectGama(), 5000);
if (useVerbose) console.log(event);
}
};

Expand Down

0 comments on commit bfe8dbb

Please sign in to comment.