mirror of
https://github.com/rclone/rclone.git
synced 2026-01-04 09:33:36 +00:00
cache: integrate with Plex websocket
This commit is contained in:
3
backend/cache/cache.go
vendored
3
backend/cache/cache.go
vendored
@@ -337,6 +337,9 @@ func NewFs(name, rootPath string) (fs.Fs, error) {
|
||||
c := make(chan os.Signal, 1)
|
||||
signal.Notify(c, syscall.SIGHUP)
|
||||
atexit.Register(func() {
|
||||
if plexURL != "" {
|
||||
f.plexConnector.closeWebsocket()
|
||||
}
|
||||
f.StopBackgroundRunners()
|
||||
})
|
||||
go func() {
|
||||
|
||||
Reference in New Issue
Block a user