aboutsummaryrefslogtreecommitdiffstats
path: root/src/stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stream.c')
-rw-r--r--src/stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stream.c b/src/stream.c
index 78dafd5..9dcb94b 100644
--- a/src/stream.c
+++ b/src/stream.c
@@ -453,7 +453,7 @@ int osmo_stream_cli_open2(struct osmo_stream_cli *cli, int reconnect)
cli->addr, cli->port,
OSMO_SOCK_F_CONNECT|OSMO_SOCK_F_BIND);
if (ret < 0) {
- if (reconnect && errno == ECONNREFUSED)
+ if (reconnect)
osmo_stream_cli_reconnect(cli);
return ret;
}