mirror of
https://github.com/Suwayomi/Tachidesk.git
synced 2025-12-10 06:42:07 +01:00
Prevent invalid webUI from stopping the server (#849)
In case there is no internet connection, it is not possible to verify the webUI files, leading to the server to fail from starting up. Instead, the existing webUI should just be used
This commit is contained in:
@@ -258,7 +258,11 @@ object WebInterfaceManager {
|
||||
logger.info { "setupWebUI: found webUI files - flavor= ${serverConfig.webUIFlavor.value}, version= $currentVersion" }
|
||||
|
||||
if (!isLocalWebUIValid(applicationDirs.webUIRoot)) {
|
||||
doInitialSetup()
|
||||
try {
|
||||
doInitialSetup()
|
||||
} catch (e: Exception) {
|
||||
logger.warn(e) { "WebUI is invalid and failed to install a valid version, proceeding with invalid version" }
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user