Browse Source

Close socket before adding message to recvs

master
Con Kolivas 10 years ago
parent
commit
1ff651971f
  1. 2
      src/stratifier.c

2
src/stratifier.c

@ -2227,8 +2227,8 @@ retry:
/* The bulk of the messages will be received json from the /* The bulk of the messages will be received json from the
* connector so look for this first. The srecv_process frees * connector so look for this first. The srecv_process frees
* the buf heap ram */ * the buf heap ram */
ckmsgq_add(sdata->srecvs, buf);
Close(sockd); Close(sockd);
ckmsgq_add(sdata->srecvs, buf);
buf = NULL; buf = NULL;
goto retry; goto retry;
} }

Loading…
Cancel
Save