Skip to content

emitPropertyChange merges payloads - race condition? #1231

Open
@danielpeintner

Description

@danielpeintner

That would mean that when emitPropertyChange is called both if statements are true:

Just to be precise, it is the emitEvent that is the issue.

I am only sending a GET request from the browser to localhost:8081/coffee-machine/events/resourceEmpty and if both conditions are met, I get "water""beans". Both payloads are somehow merged into one since they are emitted very quickly. I should have gotten only "water" since the browser will not send another GET before the other event could be emitted.

Originally posted by @egekorkan in #1229 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    binding-httpIssues related to http protocol bindingbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions