diff options
-rw-r--r-- | uclient-http.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/uclient-http.c b/uclient-http.c index 4633956..1569cda 100644 --- a/uclient-http.c +++ b/uclient-http.c @@ -657,7 +657,9 @@ static void __uclient_notify_read(struct uclient_http *uh) static void __uclient_notify_write(struct uclient_http *uh) { struct uclient *uc = &uh->uc; - uc->cb->data_sent(uc); + + if (uc->cb->data_sent) + uc->cb->data_sent(uc); } static void uclient_notify_read(struct ustream *us, int bytes) |