Stability improvements

This commit is contained in:
Pijus Kamandulis
2025-03-12 22:00:30 +02:00
parent 813b9faeaa
commit b2516eda9f
5 changed files with 15 additions and 9 deletions

View File

@@ -65,6 +65,7 @@ func StopServerInstance(serverName *C.char) int {
if serverInstance, ok := getInstance(serverNameStr); ok {
serverInstance.server.Stop()
serverInstance.dataStore.Close()
removeInstance(serverNameStr)
return ResponseSuccess
}
@@ -100,7 +101,7 @@ func LoadServerInstanceState(serverName *C.char, stateJSON *C.char) int {
}
return ResponseSuccess
}
return ResponseCurentDataStoreDoesNotSupportStateLoading
return ResponseCurrentDataStoreDoesNotSupportStateLoading
}
return ResponseServerInstanceNotFound