Skip to content

Commit 0676739

Browse files
committed
[mono] XenAdmin: Program: Disable NamedPipe creation
This fix disables the functionality that is a cause of exceptions throwing and impossibility to run the program. The negative impact isn't expected, since the disabled code probably needed to run tests. Maybe that functionality need to be restored in the future to provide automated tests. Signed-off-by: Ilya Stolyarov <[email protected]>
1 parent 267b7ff commit 0676739

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

XenAdmin/Program.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,10 @@ public static void Main(string[] args)
200200
/// </summary>
201201
private static void ConnectPipe()
202202
{
203-
_pipe = new NamedPipes.Pipe(_pipePath);
203+
if (System.Type.GetType("Mono.Runtime") == null)
204+
{
205+
_pipe = new NamedPipes.Pipe(_pipePath);
206+
}
204207

205208
if (_pipe != null)
206209
{

0 commit comments

Comments
 (0)