diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/stream.c | 2 |
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; } |