about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-04-16 22:05:22 -0700
committerEric Wong <normalperson@yhbt.net>2009-04-16 22:05:22 -0700
commite01d0c54872ffbc6b07ef790666a74494585de7c (patch)
tree33c05c05992c095e627910d27ca89ab093e3ca39
parent9f71ea06e895a9f69f46dcab8f4d667f4d7743c8 (diff)
downloadunicorn-e01d0c54872ffbc6b07ef790666a74494585de7c.tar.gz
Oops, that was not just speculative accept(), but
spammy accept()...
-rw-r--r--lib/unicorn.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb
index 2093bb3..208e6da 100644
--- a/lib/unicorn.rb
+++ b/lib/unicorn.rb
@@ -495,7 +495,7 @@ module Unicorn
               # client closed the socket even before accept
               client.close rescue nil
             ensure
-              tempfile.chmod(nr += 1)
+              tempfile.chmod(nr += 1) if client
               break if nr < 0
             end
           end