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 fe3de2a..1a38e77 100644 --- a/src/stream.c +++ b/src/stream.c @@ -247,7 +247,7 @@ static int osmo_stream_cli_write(struct osmo_stream_cli *cli) llist_del(lh); msg = llist_entry(lh, struct msgb, list); - if (cli->state == STREAM_CLI_STATE_CONNECTING) { + if (!osmo_stream_cli_is_connected(cli)) { LOGSCLI(cli, LOGL_ERROR, "not connected, dropping data!\n"); return 0; } |