* lib/cgi/session.rb: update rescue in delete session file
only Errno::ENOENT.[Bug #7940] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1dd06612a5
commit
4254686922
@ -435,9 +435,10 @@ class CGI
|
||||
|
||||
# Close and delete the session's FileStore file.
|
||||
def delete
|
||||
File::unlink @path+".lock" rescue nil
|
||||
File::unlink @path+".new" rescue nil
|
||||
File::unlink @path rescue Errno::ENOENT
|
||||
File::unlink @path+".lock"
|
||||
File::unlink @path+".new"
|
||||
File::unlink @path
|
||||
rescue Errno::ENOENT
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user