git-svn-id: svn://db.shs.com.ru/pip@651 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2018-10-18 11:31:38 +00:00
parent ff1e0a34b3
commit cb62dd8b05
2 changed files with 9 additions and 1 deletions

View File

@@ -95,7 +95,10 @@ void PIStreamPacker::received(const PIByteArray & data) {
if (packet.size_s() == packet_size) {
PIByteArray cd = decryptData(packet);
//piCout << "decrypt" << packet.size() << "->" << cd.size() << key().size();
if (!cd.isEmpty()) packetReceiveEvent(cd);
if (!cd.isEmpty()) {
packetReceived(cd);
packetReceiveEvent(cd);
}
packet.clear();
packet_size = -1;
}