Attempt fix server disconnect

This commit is contained in:
2015-10-20 23:11:38 +02:00
parent cd8b2bc634
commit 28a410dac8
2 changed files with 5 additions and 1 deletions
@@ -164,6 +164,7 @@ namespace ErgometerApplication
return new Meting(0, 0, 0, 0, 0, 0, 0, 0, 0);
}
Metingen.Add(m);
if (Doctor.Connected)
{
@@ -215,7 +216,10 @@ namespace ErgometerApplication
public static void SendNetCommand(NetCommand command)
{
NetHelper.SendNetCommand(Doctor, command);
if(! NetHelper.SendNetCommand(Doctor, command))
{
Disconnect();
}
}
private static void ParseValueSet(NetCommand command)