Skip to content

Do not duplicate ReadAsync in DataAvailable. - #167

Merged
tmds merged 1 commit into
tmds:mainfrom
madewokherd:dataavailable_race
Jul 13, 2022
Merged

Do not duplicate ReadAsync in DataAvailable.#167
tmds merged 1 commit into
tmds:mainfrom
madewokherd:dataavailable_race

Conversation

@madewokherd

Copy link
Copy Markdown
Contributor

Fixes #164.

@tmds

tmds commented Jul 7, 2022

Copy link
Copy Markdown
Owner

Can you change the PR to:

Replace what is in theif (errno == EAGAIN) branch with:

if (!_socket.ReceiveAsync(_waitForData))
{
    DataAvailable(null, null);
}

@madewokherd

Copy link
Copy Markdown
Contributor Author

That does seem to work, and it makes sense to me. I'll update the PR.

@madewokherd
madewokherd force-pushed the dataavailable_race branch from 6056191 to 6d676e7 Compare July 8, 2022 20:43
@tmds
tmds merged commit df3d058 into tmds:main Jul 13, 2022
@tmds

tmds commented Jul 13, 2022

Copy link
Copy Markdown
Owner

Thank you, @madewokherd!

@AdrianEggenberger

Copy link
Copy Markdown

Thank you both for finding and fixing this issue. The effects of this issue gave me an uncomfortable feeling in the last weeks as I had no clue where to search for a reason for the missing events. Very glad that it has been found!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Long running application sometimes stops to get watched DBUS changes

3 participants