Skip to content

Commit

Permalink
Cell::value fix
Browse files Browse the repository at this point in the history
  • Loading branch information
clinuxrulz committed May 28, 2020
1 parent 6fe1beb commit 549da61
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion sodium/impl/cell_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,12 @@ Stream<A> Cell<A>::value() const {
return sodium_ctx.transaction([sodium_ctx, this_]() mutable {
Stream<A> s1 = this_.updates();
Stream<A> spark(sodium_ctx);
const A& fire = **this_.data->value;
Node node = spark.node();
node.data->changed = true;
sodium_ctx.data->changed_nodes.push_back(spark.box_clone());
spark._send(fire);
/*
sodium_ctx.post([sodium_ctx, this_, spark]() mutable {
const A& fire = **this_.data->value;
sodium_ctx.transaction_void([sodium_ctx, spark, fire]() mutable {
Expand All @@ -165,7 +171,7 @@ Stream<A> Cell<A>::value() const {
sodium_ctx.data->changed_nodes.push_back(spark.box_clone());
spark._send(fire);
});
});
});*/
return s1.or_else(spark);
});
}
Expand Down

0 comments on commit 549da61

Please sign in to comment.