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