mirror of
https://github.com/wanderer-industries/wanderer
synced 2026-09-22 13:06:03 +00:00
fix(Core): Fixed connection EOL time refreshed every 2 minutes
This commit is contained in:
@@ -173,10 +173,12 @@ defmodule WandererApp.Map.Server.ConnectionsImpl do
|
||||
%{time_status: old_time_status}, %{id: connection_id, time_status: time_status} ->
|
||||
case time_status == @connection_time_status_eol do
|
||||
true ->
|
||||
WandererApp.Cache.put(
|
||||
"map_#{map_id}:conn_#{connection_id}:mark_eol_time",
|
||||
DateTime.utc_now()
|
||||
)
|
||||
if old_time_status != @connection_time_status_eol do
|
||||
WandererApp.Cache.put(
|
||||
"map_#{map_id}:conn_#{connection_id}:mark_eol_time",
|
||||
DateTime.utc_now()
|
||||
)
|
||||
end
|
||||
|
||||
_ ->
|
||||
if old_time_status == @connection_time_status_eol do
|
||||
|
||||
Reference in New Issue
Block a user