aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-03-17 00:16:08 +0100
committerHarald Welte <laforge@gnumonks.org>2017-03-17 12:07:19 +0100
commitf2174ef1a21c5d213a951f210130f42359933eef (patch)
treefce07deab33d6262ba143834c174a27045ecd134 /src
parenta4c1a73250bf174633cefc150d1b641bc48e57ff (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
Diffstat (limited to 'src')
-rw-r--r--src/stream.c1
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);
}