Skip to content

Fix remove interests#188

Merged
tarcieri merged 2 commits into
masterfrom
fix-remove-interests
May 2, 2018
Merged

Fix remove interests#188
tarcieri merged 2 commits into
masterfrom
fix-remove-interests

Conversation

@ioquatix

Copy link
Copy Markdown
Member

@tarcieri can you please review, merge and release? Thanks.

Comment thread ext/nio4r/monitor.c

ev_io_start(selector->ev_loop, &monitor->ev_io);
if (monitor->interests)
ev_io_start(selector->ev_loop, &monitor->ev_io);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally I prefer braces around if statements

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, excellent suggestion, I will update.

@tarcieri

tarcieri commented May 2, 2018

Copy link
Copy Markdown
Contributor

One nit, otherwise LGTM

@ioquatix

ioquatix commented May 2, 2018

Copy link
Copy Markdown
Member Author

Thanks :)

ioquatix added 2 commits May 3, 2018 11:02
- Don't add the IO to the event loop unless it has interests.
- Don't remove the IO from the event loop if it doesn't have interests.
- Assert that there were interests when adding the monitor to the ready list.
@ioquatix ioquatix force-pushed the fix-remove-interests branch from 0c27b7b to 92f9f3b Compare May 2, 2018 23:02
@ioquatix

ioquatix commented May 2, 2018

Copy link
Copy Markdown
Member Author

Okay, fixed the bracket. You are clear for merging.

@tarcieri tarcieri merged commit 84cb2c8 into master May 2, 2018
@tarcieri tarcieri deleted the fix-remove-interests branch May 2, 2018 23:13
@tarcieri

tarcieri commented May 2, 2018

Copy link
Copy Markdown
Contributor

Released as 2.3.1

netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this pull request May 6, 2018
## 2.3.1 (2018-05-03)

* [#188](socketry/nio4r#188)
  Fix remove interests
  ([@ioquatix])
msk pushed a commit to msk/pkgsrc that referenced this pull request May 11, 2026
## 2.3.1 (2018-05-03)

* [#188](socketry/nio4r#188)
  Fix remove interests
  ([@ioquatix])
jperkin pushed a commit to TritonDataCenter/pkgsrc that referenced this pull request May 14, 2026
## 2.3.1 (2018-05-03)

* [#188](socketry/nio4r#188)
  Fix remove interests
  ([@ioquatix])
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.

2 participants