Skip to content
This repository was archived by the owner on Jan 31, 2025. It is now read-only.

Commit f5fee92

Browse files
committed
Fix IPC dispose
1 parent c77c66f commit f5fee92

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Orchestrion/OrchestrionIpcManager.cs

+9-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,15 @@ private void WotsitInvoke(string guid)
153153

154154
public void Dispose()
155155
{
156-
_wotsitUnregister?.InvokeFunc(IpcDisplayName);
156+
try
157+
{
158+
_wotsitUnregister?.InvokeFunc(IpcDisplayName);
159+
}
160+
catch (Exception)
161+
{
162+
// Wotsit was not installed or too early version
163+
}
164+
157165
_currentSongProvider?.UnregisterFunc();
158166
_playSongProvider?.UnregisterFunc();
159167
_orchSongChangeProvider?.UnregisterFunc();

0 commit comments

Comments
 (0)