overdue
This commit is contained in:
19
.rclone_repo/lib/oauthutil/oauthutil_new.go
Executable file
19
.rclone_repo/lib/oauthutil/oauthutil_new.go
Executable file
@@ -0,0 +1,19 @@
|
||||
// oauthutil parts go1.8+
|
||||
|
||||
//+build go1.8
|
||||
|
||||
package oauthutil
|
||||
|
||||
import "github.com/ncw/rclone/fs"
|
||||
|
||||
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