Files
UnrealEngineUWP/Engine/Source/Programs/nDisplayLauncher/Runner/Runner.KillApp.cs
Marc Audy 608734e30d Merging //UE4/Dev-Main to Dev-Framework (//UE4/Dev-Framework) @ 4664414
#rb
#rnx

[CL 4666113 by Marc Audy in Dev-Framework branch]
2018-12-17 12:24:20 -05:00

33 lines
702 B
C#

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Net.Sockets;
using nDisplayLauncher.Config;
using nDisplayLauncher.Settings;
namespace nDisplayLauncher
{
public partial class Runner
{
private void ProcessCommandKillApp(List<ClusterNode> ClusterNodes)
{
string commandCmd = CommandKillApp;
HashSet<string> NodesSent = new HashSet<string>();
foreach (ClusterNode Node in ClusterNodes)
{
if (!NodesSent.Contains(Node.address))
{
SendDaemonCommand(Node.address, commandCmd);
NodesSent.Add(Node.address);
}
}
}
}
}