Skip to content

Commit

Permalink
Fix websocket connection check
Browse files Browse the repository at this point in the history
  • Loading branch information
rtm516 committed Aug 23, 2024
1 parent a2b70f8 commit 6b43fd9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ protected String updateSessionInternal(String url, Object data) throws SessionUp
* This should be called before any updates to the session otherwise they might fail
*/
protected void checkConnection() {
if ((this.rtaWebsocket != null && !rtaWebsocket.isOpen()) || this.rtcWebsocket != null && !rtcWebsocket.isOpen()) {
if ((this.rtaWebsocket != null && !rtaWebsocket.isOpen()) || (this.rtcWebsocket != null && !rtcWebsocket.isOpen())) {
try {
logger.info("Connection to websocket lost, re-creating session...");
createSession();
Expand Down

0 comments on commit 6b43fd9

Please sign in to comment.