Commit c7e6a578 authored by Mygod's avatar Mygod

Suppress UDP plugin errors

parent 724d61eb
...@@ -245,7 +245,8 @@ object BaseService { ...@@ -245,7 +245,8 @@ object BaseService {
File(Core.deviceStorage.noBackupFilesDir, "stat_main"), File(Core.deviceStorage.noBackupFilesDir, "stat_main"),
File(configRoot, CONFIG_FILE), File(configRoot, CONFIG_FILE),
if (udpFallback == null) "-U" else null) if (udpFallback == null) "-U" else null)
check(udpFallback?.plugin == null) { "UDP fallback cannot have plugins" } if (udpFallback?.plugin != null) throw ExpectedExceptionWrapper(IllegalStateException(
"UDP fallback cannot have plugins"))
udpFallback?.start(this, udpFallback?.start(this,
File(Core.deviceStorage.noBackupFilesDir, "stat_udp"), File(Core.deviceStorage.noBackupFilesDir, "stat_udp"),
File(configRoot, CONFIG_FILE_UDP), File(configRoot, CONFIG_FILE_UDP),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment