Skip to content

Commit bfe8dbb

Browse files
committed
fix: Remove duplicated thread while trying to connect to GAMA
1 parent d791824 commit bfe8dbb

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/api/gama_connector.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class GamaConnector {
8989
};
9090
};
9191

92-
/**
92+
/**
9393
* Allow to control gama execution
9494
* @param {string} type - Only accepted values: [stop, pause, play]
9595
* @returns {{exp_id: string, type: string}}
@@ -233,9 +233,7 @@ class GamaConnector {
233233
} else {
234234
console.error('[GAMA CONNECTOR] Connection with Gama Server interrupted suddenly');
235235
this.gama_socket = null;
236-
237-
console.warn("[GAMA CONNECTOR] Reconnecting in 5s...");
238-
setTimeout(() => this.connectGama(), 5000);
236+
if (useVerbose) console.log(event);
239237
}
240238
};
241239

0 commit comments

Comments
 (0)