forked from TrueCloudLab/rclone
build: drop support for go1.8
This commit is contained in:
parent
613a9bb86b
commit
16d8014cbb
36 changed files with 40 additions and 202 deletions
|
@ -590,3 +590,15 @@ func (s *authServer) Start() {
|
|||
err = s.server.Serve(s.listener)
|
||||
fs.Debugf(nil, "Closed auth server with error: %v", err)
|
||||
}
|
||||
|
||||
func (s *authServer) Stop() {
|
||||
fs.Debugf(nil, "Closing auth server")
|
||||
if s.code != nil {
|
||||
close(s.code)
|
||||
s.code = nil
|
||||
}
|
||||
_ = s.listener.Close()
|
||||
|
||||
// close the server
|
||||
_ = s.server.Close()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue