diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-10-30 03:00:57 +0400 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-10-30 03:00:57 +0400 |
commit | a9b44ebe556c3f60de2fc1154d48a26f43aa15b7 (patch) | |
tree | 0696d768473079ded02536cdb07237715b0b9945 /ustream.c | |
parent | efc9f4b702f44854193d015b72831b4530258aaf (diff) |
ustream: make notify_state optional as well
Diffstat (limited to 'ustream.c')
-rw-r--r-- | ustream.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -104,7 +104,8 @@ static void ustream_state_change_cb(struct uloop_timeout *t) if (s->write_error) ustream_free_buffers(&s->w); - s->notify_state(s); + if (s->notify_state) + s->notify_state(s); } void ustream_init_defaults(struct ustream *s) |