Makes MakeLocalConnection() used

This commit is contained in:
Cyberboss
2017-09-17 23:56:02 -04:00
parent bb31704c6a
commit 5ddb4887fb
3 changed files with 11 additions and 10 deletions
+3 -3
View File
@@ -149,12 +149,12 @@ namespace TGCommandLine
if (res != null)
{
Console.WriteLine("Unable to connect: " + res);
Server.SetRemoteLoginInformation(null, 0, null, null);
Server.MakeLocalConnection();
}
else if (!Server.Authenticate())
{
Console.WriteLine("Authentication error: Username/password/windows identity is not authorized! Returning to local mode...");
Server.SetRemoteLoginInformation(null, 0, null, null);
Server.MakeLocalConnection();
}
else
{
@@ -163,7 +163,7 @@ namespace TGCommandLine
}
break;
case "disconnect":
Server.SetRemoteLoginInformation(null, 0, null, null);
Server.MakeLocalConnection();
Console.WriteLine("Switch to local mode");
break;
case "quit":