mirror of
https://github.com/rclone/rclone.git
synced 2025-01-19 18:42:45 +08:00
cache: fix nil pointer deref - fixes #2448
This commit is contained in:
parent
e979cd62c1
commit
6156bc5806
4
backend/cache/plex.go
vendored
4
backend/cache/plex.go
vendored
|
@ -210,7 +210,9 @@ func (p *plexConnector) authenticate() error {
|
|||
}
|
||||
p.token = token
|
||||
if p.token != "" {
|
||||
p.saveToken(p.token)
|
||||
if p.saveToken != nil {
|
||||
p.saveToken(p.token)
|
||||
}
|
||||
fs.Infof(p.f.Name(), "Connected to Plex server: %v", p.url.String())
|
||||
}
|
||||
p.listenWebsocket()
|
||||
|
|
Loading…
Reference in New Issue
Block a user