From 1ff651971ffd2d8ad7cf746b4bfe3d700ab59c3b Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 20 Feb 2015 23:54:57 +1100 Subject: [PATCH] Close socket before adding message to recvs --- src/stratifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index 99d7afc3..a52977ab 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -2227,8 +2227,8 @@ retry: /* The bulk of the messages will be received json from the * connector so look for this first. The srecv_process frees * the buf heap ram */ - ckmsgq_add(sdata->srecvs, buf); Close(sockd); + ckmsgq_add(sdata->srecvs, buf); buf = NULL; goto retry; }