add outgoing connections to dict
This commit is contained in:
1 parent
0f305a216e
commit
e6e5bee4ef
1 file changed
+1
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user