diff --git a/web/app/assets/javascripts/JamServer.js b/web/app/assets/javascripts/JamServer.js index f60ea07d0..73997c0a7 100644 --- a/web/app/assets/javascripts/JamServer.js +++ b/web/app/assets/javascripts/JamServer.js @@ -321,23 +321,15 @@ lastDisconnectedReason = 'WEBSOCKET_CLOSED_LOCALLY' } - rest.createDiagnostic({ - type: lastDisconnectedReason, - data: {logs: logger.logCache, client_type: clientType, client_id: server.clientID, channel_id: channelId} - }) - .always(function() { - if ($currentDisplay.is('.no-websocket-connection')) { - // this path is the 'not in session path'; so there is nothing else to do - $currentDisplay.removeClass('active'); - - // TODO: tell certain elements that we've reconnected - } - else { - window.location.reload(); - } - }); - + if ($currentDisplay.is('.no-websocket-connection')) { + // this path is the 'not in session path'; so there is nothing else to do + $currentDisplay.removeClass('active'); + // TODO: tell certain elements that we've reconnected + } + else { + window.location.reload(); + } } function buildOptions() {