MINOR: task/stream: tasks related to a stream must be init by the caller.
The task_wakeup was called on stream_new, but the task/stream
wasn't fully initialized yet. The task_wakeup must be called
explicitly by the caller once the task/stream is initialized.
diff --git a/src/stream.c b/src/stream.c
index bc8b3af..7874837 100644
--- a/src/stream.c
+++ b/src/stream.c
@@ -239,9 +239,10 @@
/* it is important not to call the wakeup function directly but to
* pass through task_wakeup(), because this one knows how to apply
- * priorities to tasks.
+ * priorities to tasks. Using multi thread we must be sure that
+ * stream is fully initialized before calling task_wakeup. So
+ * the caller must handle the task_wakeup
*/
- task_wakeup(t, TASK_WOKEN_INIT);
return s;
/* Error unrolling */