diff --git a/admin/app/admin/scoring_load.rb b/admin/app/admin/scoring_load.rb index 089db30a2..e020a4316 100644 --- a/admin/app/admin/scoring_load.rb +++ b/admin/app/admin/scoring_load.rb @@ -5,7 +5,7 @@ ActiveAdmin.register_page "Current Scoring Load" do table_for GetWork.summary do column "Work", :work_count column "Who", Proc.new { |connection| "#{connection.first_name} #{connection.last_name} - #{connection.email}" } - column "Errors", Proc.new { |connection| "#{connection.udp_reachable != 'f' ? "" : "No STUN"} #{connection.in_timeout != 'f' ? "in timeout," : ""} #{connection.in_session != 'f' ? "in session" : ""}" } + column "Errors", Proc.new { |connection| "#{connection.udp_reachable != false ? "" : "No STUN,"} #{connection.in_timeout != 'f' ? "Timeout," : ""} #{connection.in_session != 'f' ? "In-Session," : ""}" } column "Total Timeouts", :scoring_timeout_occurrences column "Current Scoring Failures", :scoring_failures column "Offset", :scoring_failures_offset diff --git a/ruby/lib/jam_ruby/connection_manager.rb b/ruby/lib/jam_ruby/connection_manager.rb index bca7d364e..b9e23adf9 100644 --- a/ruby/lib/jam_ruby/connection_manager.rb +++ b/ruby/lib/jam_ruby/connection_manager.rb @@ -84,8 +84,12 @@ module JamRuby conn.save!(validate: false) end + # if udp_reachable is nil, it means it's unknown. Since this is a reconnect, we'll, preserve existing value in this case + # otherwise, pass in the value of boolean udp_reachable var + udp_reachable_value = udp_reachable.nil? ? 'udp_reachable' : udp_reachable + sql =<
- This application will close automatically in a moment. - If it does not close, please restart it manually. + {% if(data.os == 'MacOSX') { %} + This application will close automatically in {{data.countdown}} {{data.countdown == 1 ? 'second' : 'seconds'}}. + If it does not close, please restart it manually or download the latest JamKazam from our downloads page. + {% } else { %} + The updater will launch automatically in {{data.countdown}} seconds. + If you do not see a Windows updater, please restart it manually or download the latest JamKazam from our downloads page. + {% } %}
@@ -90,7 +95,7 @@

Download the latest JamKazam from our downloads page.

- {error_msg} + {{data.error_msg}}
diff --git a/websocket-gateway/lib/jam_websockets/router.rb b/websocket-gateway/lib/jam_websockets/router.rb index d3b91c552..f16dc1fd9 100644 --- a/websocket-gateway/lib/jam_websockets/router.rb +++ b/websocket-gateway/lib/jam_websockets/router.rb @@ -737,7 +737,7 @@ module JamWebsockets if connection.stale? ConnectionManager.active_record_transaction do |connection_manager| heartbeat_interval, connection_stale_time, connection_expire_time = determine_connection_times(context.user, context.client_type) - connection_manager.reconnect(connection, connection.music_session_id, nil, connection_stale_time, connection_expire_time, udp_reachable) + connection_manager.reconnect(connection, client.channel_id, connection.music_session_id, nil, connection_stale_time, connection_expire_time, nil) end end end