mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Handle waking up a closed selector in Reactor#add (#3005)
Co-Authored-By: MSP-Greg <MSP-Greg@users.noreply.github.com> Co-authored-by: MSP-Greg <MSP-Greg@users.noreply.github.com>
This commit is contained in:
parent
3d33475dd4
commit
70600bf261
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ module Puma
|
||||||
@input << client
|
@input << client
|
||||||
@selector.wakeup
|
@selector.wakeup
|
||||||
true
|
true
|
||||||
rescue ClosedQueueError
|
rescue ClosedQueueError, IOError # Ignore if selector is already closed
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue