diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-03-19 19:12:12 +0100 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-03-20 01:32:06 +0000 |
commit | db9808e883b3048c0383e71985e02fcb377b0d56 (patch) | |
tree | da7a248a11c5eefc98065d4353ec1180d9a0e86a | |
parent | 3a060c59bec7a4a5b22849938b8b4c7b7ecb4c01 (diff) |
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
-rw-r--r-- | src/stream.c | 1 |
1 files changed, 1 insertions, 0 deletions
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: |