Fixed a bug where the client would crash when the settings window on the server opens.

This commit is contained in:
Marek Kowalski
2017-05-14 10:31:34 +02:00
parent ddc3828f21
commit eab7e3c958
2 changed files with 9 additions and 1 deletions
+6 -1
View File
@@ -30,6 +30,8 @@ namespace KinectServer
public KinectSettings oSettings;
public KinectServer oServer;
bool bFormLoaded = false;
public SettingsForm()
{
InitializeComponent();
@@ -69,11 +71,14 @@ namespace KinectServer
rBinaryPly.Checked = false;
rAsciiPly.Checked = true;
}
bFormLoaded = true;
}
void UpdateClients()
{
oServer.SendSettings();
if (bFormLoaded)
oServer.SendSettings();
}
void UpdateMarkerFields()
+3
View File
@@ -514,6 +514,9 @@ void LiveScanClient::HandleSocket()
m_bFrameCompression = true;
else
m_bFrameCompression = false;
//so that we do not lose the next character in the stream
i--;
}
//send stored frame
else if (received[i] == MSG_REQUEST_STORED_FRAME)