Move dircache, oauthutil, rest and pacer modules into lib

This commit is contained in:
Nick Craig-Wood 2018-01-11 16:29:20 +00:00
parent b8b620f5c2
commit 60afda007b
30 changed files with 35 additions and 35 deletions

View file

@ -0,0 +1,16 @@
// oauthutil parts pre 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()
}