projects
/
project
/
libubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ustream: make notify_state optional as well
[project/libubox.git]
/
ustream.c
diff --git
a/ustream.c
b/ustream.c
index
ed4fbb3
..
8e6efcd
100644
(file)
--- a/
ustream.c
+++ b/
ustream.c
@@
-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)