Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 036e9f5f authored by Sreelakshmi Gownipalli's avatar Sreelakshmi Gownipalli Committed by Gerrit - the friendly Code Review server
Browse files

diag: Reset the in_busy variable on closing the socket



Reset the in_busy variable for the buffer that reads the
data from socket channel when diag socket state is closed.

Change-Id: Ib24ce7c58397709b7199f7656d251976a1d2c4ba
Signed-off-by: default avatarSreelakshmi Gownipalli <sgownipa@codeaurora.org>
parent 85125f66
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -930,7 +930,7 @@ static int diag_socket_read(void *ctxt, unsigned char *buf, int buf_len)
		DIAG_LOG(DIAG_DEBUG_PERIPHERALS,
			 "%s closing read thread. diag state is closed\n",
			 info->name);
		diag_ws_release();
		diagfwd_channel_read_done(info->fwd_ctxt, buf, 0);
		return 0;
	}