From e6e5bee4efc0a2761df6b1e8b2651da8ba64cda1 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 c65e1d5..6f432f3 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()