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:
Juanito Fatas 2022-11-04 13:38:01 +09:00 committed by GitHub
parent 3d33475dd4
commit 70600bf261
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ module Puma
@input << client
@selector.wakeup
true
rescue ClosedQueueError
rescue ClosedQueueError, IOError # Ignore if selector is already closed
false
end