From e57c7e1e3f2a657d153365fee368c9edac3bda62 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 8 Nov 2011 11:13:37 +0100 Subject: stream: don't destroy server connection on error This patch includes a minor fix. We don't destroy connection on errors, it should be the caller which must control this. --- src/stream.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src') diff --git a/src/stream.c b/src/stream.c index 46c1046..c87f999 100644 --- a/src/stream.c +++ b/src/stream.c @@ -548,11 +548,9 @@ int osmo_stream_server_conn_recv(struct osmo_stream_server_conn *conn, LOGP(DLINP, LOGL_ERROR, "lost connection with server\n"); } - osmo_stream_server_conn_destroy(conn); return ret; } else if (ret == 0) { LOGP(DLINP, LOGL_ERROR, "connection closed with server\n"); - osmo_stream_server_conn_destroy(conn); return ret; } msgb_put(msg, ret); -- cgit v1.2.3