1
0
Fork 0
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:
Evan Phoenix 2014-01-25 18:34:12 -08:00
parent 43b2b7342d
commit 4b866671dd

View file

@ -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