fix: let native assembly handle the multiple instance errors

develop
CrackThrough 2022-11-09 20:10:04 +09:00
parent 6a37539b37
commit 3dd375a1df
1 changed files with 0 additions and 4 deletions

View File

@ -81,8 +81,6 @@ namespace SkyHook
{ {
try try
{ {
if (isHookActive) return;
var result = SkyHookNative.StartHook(HookCallback); var result = SkyHookNative.StartHook(HookCallback);
if (result != null) if (result != null)
@ -116,8 +114,6 @@ namespace SkyHook
private void _StopHook() private void _StopHook()
{ {
if (!isHookActive) return;
var result = SkyHookNative.StopHook(); var result = SkyHookNative.StopHook();
if (result != null) if (result != null)