Attempt fix server disconnect
This commit is contained in:
@@ -164,6 +164,7 @@ namespace ErgometerApplication
|
|||||||
return new Meting(0, 0, 0, 0, 0, 0, 0, 0, 0);
|
return new Meting(0, 0, 0, 0, 0, 0, 0, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Metingen.Add(m);
|
Metingen.Add(m);
|
||||||
if (Doctor.Connected)
|
if (Doctor.Connected)
|
||||||
{
|
{
|
||||||
@@ -215,7 +216,10 @@ namespace ErgometerApplication
|
|||||||
|
|
||||||
public static void SendNetCommand(NetCommand command)
|
public static void SendNetCommand(NetCommand command)
|
||||||
{
|
{
|
||||||
NetHelper.SendNetCommand(Doctor, command);
|
if(! NetHelper.SendNetCommand(Doctor, command))
|
||||||
|
{
|
||||||
|
Disconnect();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void ParseValueSet(NetCommand command)
|
private static void ParseValueSet(NetCommand command)
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user