uclient: defer read notifications to uloop timer
[project/uclient.git] / uclient-http.c
index 935d50f413c03883bb3c3c923e850624b23913f2..83c268f239137423741eeac8704eba64a3d2c36c 100644 (file)
@@ -780,9 +780,7 @@ static void __uclient_notify_read(struct uclient_http *uh)
        if (uh->state == HTTP_STATE_RECV_DATA) {
                /* Now it's uclient user turn to read some data */
                uloop_timeout_cancel(&uc->connection_timeout);
-
-               if (uc->cb->data_read)
-                       uc->cb->data_read(uc);
+               uclient_backend_read_notify(uc);
        }
 }