Skip to content

Commit 2e5c620

Browse files
committed
ShowItemInFolderAsync: Fix endless hang
1 parent 9e9558b commit 2e5c620

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/ElectronNET.API/API/Shell.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,9 @@ internal static Shell Instance
4242
/// <param name="fullPath">The full path to the directory / file.</param>
4343
public Task ShowItemInFolderAsync(string fullPath)
4444
{
45-
var tcs = new TaskCompletionSource<object>();
46-
47-
// Is this really useful?
48-
BridgeConnector.Socket.Once("shell-showItemInFolderCompleted", () => { });
4945
BridgeConnector.Socket.Emit("shell-showItemInFolder", fullPath);
5046

51-
return tcs.Task;
47+
return Task.CompletedTask;
5248
}
5349

5450
/// <summary>

0 commit comments

Comments
 (0)