diff options
Diffstat (limited to 'lib/gserver.rb')
-rw-r--r-- | lib/gserver.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gserver.rb b/lib/gserver.rb index f6f37d3a89..8eac2a2fed 100644 --- a/lib/gserver.rb +++ b/lib/gserver.rb @@ -261,7 +261,8 @@ class GServer end } client = @tcpServer.accept - @connections << Thread.new(client) { |myClient| + Thread.new(client) { |myClient| + @connections << Thread.current begin myPort = myClient.peeraddr[1] serve(myClient) if !@audit or connecting(myClient) |