fix: let native assembly handle the multiple instance errors
parent
6a37539b37
commit
3dd375a1df
|
@ -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)
|
||||||
|
|
Reference in New Issue