|
@@ -42,8 +42,8 @@ public class WebSocketSessionManager {
|
|
|
static {
|
|
|
|
|
|
new ScheduledThreadPoolExecutor(1, r -> new Thread(r, "magic-api-send-log-task")).scheduleAtFixedRate(WebSocketSessionManager::flushLog, 1, 1, TimeUnit.SECONDS);
|
|
|
-
|
|
|
- new ScheduledThreadPoolExecutor(1, r -> new Thread(r, "magic-api-websocket-clean-task")).scheduleAtFixedRate(WebSocketSessionManager::checkSession, 25, 25, TimeUnit.SECONDS);
|
|
|
+
|
|
|
+ new ScheduledThreadPoolExecutor(1, r -> new Thread(r, "magic-api-websocket-clean-task")).scheduleAtFixedRate(WebSocketSessionManager::checkSession, 60, 60, TimeUnit.SECONDS);
|
|
|
}
|
|
|
|
|
|
public static Collection<MagicConsoleSession> getSessions() {
|