Navigation Menu

Skip to content

Commit

Permalink
Close socket on shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 22, 2014
1 parent 325622a commit 7af94b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/droonga/fluent_message_receiver.rb
Expand Up @@ -82,6 +82,7 @@ def create_server(&block)
end

def shutdown_server
@server.close
end

def shutdown_clients
Expand Down Expand Up @@ -114,6 +115,7 @@ def start
end

def shutdown
@socket.close
@watcher.detach
end

Expand Down

0 comments on commit 7af94b6

Please sign in to comment.