mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2026-05-16 04:52:39 +02:00
Move unhandled exception announcement check to correct method
This commit is contained in:
@@ -291,8 +291,7 @@ open class JSClient : IPlatformClient {
|
|||||||
.value;
|
.value;
|
||||||
}
|
}
|
||||||
catch(ex: Throwable) {
|
catch(ex: Throwable) {
|
||||||
if(ex !is PluginEngineException)
|
announcePluginUnhandledException("isChannelUrl", ex);
|
||||||
announcePluginUnhandledException("isChannelUrl", ex);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -564,6 +563,8 @@ open class JSClient : IPlatformClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun announcePluginUnhandledException(method: String, ex: Throwable) {
|
private fun announcePluginUnhandledException(method: String, ex: Throwable) {
|
||||||
|
if(ex is PluginEngineException)
|
||||||
|
return;
|
||||||
try {
|
try {
|
||||||
StateAnnouncement.instance.registerAnnouncement("PluginUnhandled_${config.id}_${method}",
|
StateAnnouncement.instance.registerAnnouncement("PluginUnhandled_${config.id}_${method}",
|
||||||
"Plugin ${config.name} encountered an error in [${method}]",
|
"Plugin ${config.name} encountered an error in [${method}]",
|
||||||
|
|||||||
Reference in New Issue
Block a user