mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-08-08 17:19:18 +00:00
Move unhandled exception announcement check to correct method
This commit is contained in:
parent
374d9950be
commit
081ae1dd88
1 changed files with 3 additions and 2 deletions
|
@ -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}]",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue