From db9808e883b3048c0383e71985e02fcb377b0d56 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 19 Mar 2017 19:12:12 +0100 Subject: stream client: Ensure client is notified on reconnection without setting the BSC_FD_* flags prior to reconnection, the re-connect would happen silently and the client program would not be notified via the connect_cb(). Change-Id: Iaf8ec8662cf83476eee1b76fa41dc57f063f0ad3 --- src/stream.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/stream.c') diff --git a/src/stream.c b/src/stream.c index f5408f8..287e297 100644 --- a/src/stream.c +++ b/src/stream.c @@ -340,6 +340,7 @@ static void cli_timer_cb(void *data) switch(cli->state) { case STREAM_CLI_STATE_CONNECTING: + cli->ofd.when |= BSC_FD_READ | BSC_FD_WRITE; osmo_stream_cli_open2(cli, 1); break; default: -- cgit v1.2.3