fix connection establishment when loading files

This commit is contained in:
SCM6WE
2021-09-23 11:09:43 +02:00
parent 54266e52ec
commit 766a8171f0
3 changed files with 14 additions and 1 deletions

View File

@@ -164,6 +164,8 @@ namespace PolyChat
/// <param name="ip"></param>
public void loadChats()
{
//load dir and create if non existant
if (Directory.Exists("U:\\PolyChat\\Saves"))
{
@@ -188,6 +190,7 @@ namespace PolyChat
ip = ip.Substring(0, ip.Length - 4);
Debug.WriteLine("-" + ip + "-");
Debug.WriteLine(jsonArr);
Connect(ip);
UIController.OnIncomingMessages(ip, jsonArr);
}
}