diff options
-rw-r--r-- | lib/cgi/session.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/cgi/session.rb b/lib/cgi/session.rb index 3f265a378a..93e4b54029 100644 --- a/lib/cgi/session.rb +++ b/lib/cgi/session.rb @@ -435,9 +435,9 @@ class CGI # Close and delete the session's FileStore file. def delete - File::unlink @path+".lock" rescue Errno::ENOENT - File::unlink @path+".new" rescue Errno::ENOENT - File::unlink @path rescue Errno::ENOENT + File::unlink @path+".lock" rescue nil + File::unlink @path+".new" rescue nil + File::unlink @path rescue nil end end |