mirror of
https://github.com/storytold/LiveScan3D.git
synced 2026-10-09 00:09:58 +00:00
Fixed a bug where the client would crash when the settings window on the server opens.
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user