picloud fix segfault on close
This commit is contained in:
@@ -71,13 +71,14 @@ void PICloud::TCP::sendDisconnected(uint client_id) {
|
||||
}
|
||||
|
||||
|
||||
void PICloud::TCP::sendData(const PIByteArray & data) {
|
||||
int PICloud::TCP::sendData(const PIByteArray & data) {
|
||||
header.type = PICloud::TCP::Data;
|
||||
PIByteArray ba;
|
||||
ba << header;
|
||||
ba.append(data);
|
||||
// piCout << "sendData" << ba.toHex();
|
||||
streampacker->send(ba);
|
||||
return data.size_s();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user