Skip to content

Commit

Permalink
Adds comment on Close() for godoc. Duh.
Browse files Browse the repository at this point in the history
  • Loading branch information
cognusion committed Mar 7, 2020
1 parent f5b905d commit 4b98110
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ftpserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ func (ftpServer *FTPServer) ListenAndServe() error {
return nil
}

// Close signals the server to stop. It may take a couple of seconds. Do not call ListenAndServe again after this, build a new FTPServer.
func (ftpServer *FTPServer) Close() {
select {
case <-ftpServer.closeChan:
Expand Down

0 comments on commit 4b98110

Please sign in to comment.