diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-03-17 00:16:08 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-03-17 12:07:19 +0100 |
commit | f2174ef1a21c5d213a951f210130f42359933eef (patch) | |
tree | fce07deab33d6262ba143834c174a27045ecd134 | |
parent | a4c1a73250bf174633cefc150d1b641bc48e57ff (diff) |
stream: When destroying, make sure to kill reconnect timer
if osmo_stream_cli_destroy() is called while the reconnect timer is
running, we would end up in a crash.
Change-Id: If6597130f472f1e2b8d9682002250ecd54675bb0
-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 93de3b7..2fca7be 100644 --- a/src/stream.c +++ b/src/stream.c @@ -295,6 +295,7 @@ osmo_stream_cli_set_read_cb(struct osmo_stream_cli *cli, void osmo_stream_cli_destroy(struct osmo_stream_cli *cli) { + osmo_timer_del(&cli->timer); talloc_free(cli); } |