Skip to content
This repository has been archived by the owner on Mar 3, 2021. It is now read-only.

Commit

Permalink
Close client on quit command
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Saxby committed Mar 1, 2011
1 parent bfe9872 commit 661d5dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/fake_ftp/server.rb
Expand Up @@ -121,7 +121,9 @@ def _pwd(*args)
end

def _quit(*args)
'221 OMG bye!'
respond_with '221 OMG bye!'
@client.close if @client
@client = nil
end

def _stor(filename)
Expand Down

0 comments on commit 661d5dd

Please sign in to comment.