Skip to content
Snippets Groups Projects
Commit 3074cb68 authored by Martin Kaltenbrunner's avatar Martin Kaltenbrunner
Browse files

fix TUIO/FLC crash if not connected

parent 7dc21046
Branches
No related tags found
No related merge requests found
......@@ -640,6 +640,7 @@ bool FlashSender::isConnected() {
}
bool FlashSender::sendOscPacket (osc::OutboundPacketStream *bundle) {
if (lcConnection==NULL) return false;
if (!TFLCSConnectionHasConnectedClient(lcConnection)) return false;
if ( bundle->Size() > buffer_size ) return false;
if ( bundle->Size() == 0 ) return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment