mirror of
https://github.com/ZetaKebab/MpcNET.git
synced 2025-01-14 22:18:43 +00:00
Deadlock in test on linux fixed
This commit is contained in:
parent
3594e508e4
commit
92e9d2b225
@ -24,7 +24,7 @@ namespace LibMpcTest
|
||||
|
||||
Console.Out.WriteLine(_server.LogError);
|
||||
|
||||
var connected = _mpc.ConnectAsync().GetAwaiter().GetResult();
|
||||
var connected = Task.Run(async () => await _mpc.ConnectAsync()).Result;
|
||||
if (connected)
|
||||
{
|
||||
_output.WriteLine("Connected to MPD.");
|
||||
|
@ -27,6 +27,8 @@ namespace LibMpcTest
|
||||
}
|
||||
};
|
||||
|
||||
Console.WriteLine($"Starting Server: {Process.StartInfo.FileName} {Process.StartInfo.Arguments}");
|
||||
|
||||
Process.Start();
|
||||
LogOutput = Process.StandardOutput.ReadToEnd();
|
||||
LogError = Process.StandardError.ReadToEnd();
|
||||
|
Loading…
Reference in New Issue
Block a user