mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-27 15:17:38 +00:00
Fix session cleanup on startup by using correct JSON field name
This commit is contained in:
parent
414a2160e7
commit
f856c49e1b
1 changed files with 2 additions and 2 deletions
|
|
@ -379,9 +379,9 @@ class ServerManager {
|
||||||
|
|
||||||
if let httpResponse = response as? HTTPURLResponse {
|
if let httpResponse = response as? HTTPURLResponse {
|
||||||
if httpResponse.statusCode == 200 {
|
if httpResponse.statusCode == 200 {
|
||||||
// Try to parse the response
|
// Parse the server response
|
||||||
if let jsonData = try? JSONSerialization.jsonObject(with: data) as? [String: Any],
|
if let jsonData = try? JSONSerialization.jsonObject(with: data) as? [String: Any],
|
||||||
let cleanedCount = jsonData["cleaned_count"] as? Int
|
let cleanedCount = jsonData["localCleaned"] as? Int
|
||||||
{
|
{
|
||||||
logger.info("Initial cleanup completed: cleaned \(cleanedCount) exited sessions")
|
logger.info("Initial cleanup completed: cleaned \(cleanedCount) exited sessions")
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue