Skip to content

Commit

Permalink
Merge pull request #41 from stripe/carl-writeable
Browse files Browse the repository at this point in the history
Fix UNIXSocket leak
  • Loading branch information
zenazn committed Sep 23, 2014
2 parents 0f4cb66 + 14dba2a commit a9b1655
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/einhorn/event.rb
Expand Up @@ -75,7 +75,7 @@ def self.register_writeable(writer)
def self.deregister_writeable(writer)
writers = @@writeable[writer.to_io]
writers.delete(writer)
@@readable.delete(writer.to_io) if writers.length == 0
@@writeable.delete(writer.to_io) if writers.length == 0
end

def self.writeable_fds
Expand Down

0 comments on commit a9b1655

Please sign in to comment.