mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-03-25 09:25:50 +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 httpResponse.statusCode == 200 {
|
||||
// Try to parse the response
|
||||
// Parse the server response
|
||||
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")
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue