aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2011-11-08 11:13:37 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2011-11-08 11:17:38 +0100
commite57c7e1e3f2a657d153365fee368c9edac3bda62 (patch)
tree8063a96c0c729a236ca819a323469033bd07968f /src
parentd3ba14648c8fc9d9f853c3aebd1476dc8d46e4d4 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/stream.c2
1 files changed, 0 insertions, 2 deletions
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);