Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2815bdb commit 4696b6cCopy full SHA for 4696b6c
1 file changed
IntelCtlLibraryPlugin.cs
@@ -15,7 +15,12 @@ public void Close()
15
{
16
_disposable?.Dispose();
17
_disposable = null;
18
- CtlLibrary.ctlClose(_apiHandle).ThrowIfError("Close");
+
19
+ if (_apiHandle != null)
20
+ {
21
+ CtlLibrary.ctlClose(_apiHandle).ThrowIfError("Close");
22
+ _apiHandle = null;
23
+ }
24
}
25
26
public void Initialize()
@@ -28,7 +33,6 @@ public void Initialize()
28
33
29
34
_apiHandle = CtlLibrary.ctl_api_handle_t_PtrPtr_value(handlePtr);
30
35
31
-
32
36
37
38
public void Load(IPluginSensorsContainer _container)
0 commit comments