This commit is contained in:
fabjuuuh
2020-10-16 15:02:26 +02:00
parent e3c580c8c2
commit 173dbf2745
8 changed files with 47 additions and 16 deletions

View File

@@ -135,17 +135,17 @@ namespace ClientApp.Utils
Debug.WriteLine($"login failed \"{responseStatus}\"");
}
break;
/*case DataParser.START_SESSION:
case DataParser.START_SESSION:
Console.WriteLine("Session started!");
this.sessionRunning = true;
if (engineConnection.Connected && !engineConnection.FollowingRoute) engineConnection.StartRouteFollow();
sendMessage(DataParser.getStartSessionJson());
Debug.WriteLine("start");
break;
case DataParser.STOP_SESSION:
Console.WriteLine("Stop session identifier");
this.sessionRunning = false;
sendMessage(DataParser.getStopSessionJson());
break;*/
Debug.WriteLine("stop");
break;
case DataParser.SET_RESISTANCE:
Console.WriteLine("Set resistance identifier");
if (this.handler == null)
@@ -297,6 +297,7 @@ namespace ClientApp.Utils
public void Dispose()
{
Debug.WriteLine("client dispose called");
sendMessage(DataParser.getDisconnectJson(LoginViewModel.Username));
this.stream.Dispose();
this.client.Dispose();
this.handler.stop();