Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

Commit

Permalink
Bugfix (collateral): Fixed msg parsing logic for blob/error which cau…
Browse files Browse the repository at this point in the history
…ses GUI to crash or become unresponsive; this was a colleteral of reworking of the msg parsing code to fix day one issues in revision c484106d19b8

Fixes issue 153
  • Loading branch information
pstavirs committed Jun 14, 2015
1 parent d6da34e commit 53b0154
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rpc/pbrpcchannel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ void PbRpcChannel::on_mpSocket_readyRead()
blob = static_cast<PbRpcController*>(controller)->binaryBlob();
Q_ASSERT(blob != NULL);

msgLen = 0;
while (cumLen < len)
{
if (inStream->Next((const void**)&msg, &msgLen) == false) {
Expand Down Expand Up @@ -296,6 +297,7 @@ void PbRpcChannel::on_mpSocket_readyRead()
static QByteArray error;
int l = 0;

msgLen = 0;
while (cumLen < len)
{
if (inStream->Next((const void**)&msg, &msgLen) == false) {
Expand Down

0 comments on commit 53b0154

Please sign in to comment.