From cadb1e5ecab05fcf57e6f0a918a25a80b2722a75 Mon Sep 17 00:00:00 2001 From: "Felix Hartmann (PEA3-Fe-FI)" Date: Wed, 22 Sep 2021 14:28:43 +0200 Subject: [PATCH] add outgoing connections to dict --- PolyChat/Controller.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PolyChat/Controller.cs b/PolyChat/Controller.cs index 48dd274..8b03a2c 100644 --- a/PolyChat/Controller.cs +++ b/PolyChat/Controller.cs @@ -33,7 +33,7 @@ namespace PolyChat public void Connect(string ip) { Debug.WriteLine("--- Controller.Connect ---"); - new Connection(ip, PORT, Data => OnMessage(Data)); + Connections.Add(ip, new Connection(ip, PORT, Data => OnMessage(Data))); } private void Serve()