Skip to content

Commit 70747c7

Browse files
committed
fix(plaxt): check the global token inside a lock
1 parent 195a09c commit 70747c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

handler/plex.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ func (c *PlexClient) findFriend(id string) (isFound bool) {
222222
}
223223

224224
func (c *PlexClient) syncTimelineWithPlaxt(r *http.Request) {
225-
if c.plaxtUrl == "" || c.client.Token == "" {
225+
if c.plaxtUrl == "" || !c.IsTokenSet() {
226226
return
227227
}
228228

0 commit comments

Comments
 (0)