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()