mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
JRuby raises IOError if the socket is there. Fixes #377
This commit is contained in:
parent
43b2b7342d
commit
4b866671dd
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ module Puma
|
|||
if File.exist? path
|
||||
begin
|
||||
old = UNIXSocket.new path
|
||||
rescue SystemCallError
|
||||
rescue SystemCallError, IOError
|
||||
File.unlink path
|
||||
else
|
||||
old.close
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue