mirror of
https://github.com/rclone/rclone.git
synced 2026-10-25 04:48:32 -04:00
cache: fix nil pointer deref - fixes #2448
This commit is contained in:
1 parent
e979cd62c1
commit
6156bc5806
1 file changed
+3
-1
Vendored
+3
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user