mirror of
https://github.com/rclone/rclone.git
synced 2025-06-17 22:12:23 +08:00
build: drop support for go1.8
This commit is contained in:
@ -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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user