feat: catch exception for error in thread
parent
3c29035c02
commit
6a37539b37
|
@ -78,6 +78,8 @@ namespace SkyHook
|
|||
Exception exception = null;
|
||||
|
||||
new Thread(() =>
|
||||
{
|
||||
try
|
||||
{
|
||||
if (isHookActive) return;
|
||||
|
||||
|
@ -94,6 +96,12 @@ namespace SkyHook
|
|||
while (isHookActive)
|
||||
{
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
exception = e;
|
||||
throw;
|
||||
}
|
||||
}).Start();
|
||||
|
||||
while (!started && exception == null)
|
||||
|
|
Reference in New Issue