dont send empty updates
This commit is contained in:
@@ -86,10 +86,12 @@ export class HomepageService extends BaseService<null> {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
this.sseService.notifyClients({
|
if (updates.length > 0) {
|
||||||
type: "update",
|
this.sseService.notifyClients({
|
||||||
data: updates,
|
type: "update",
|
||||||
});
|
data: updates,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
this.lastPoll = newPoll;
|
this.lastPoll = newPoll;
|
||||||
this.scheduleSongEndPoll(newPoll.tidal_current);
|
this.scheduleSongEndPoll(newPoll.tidal_current);
|
||||||
|
|||||||
Reference in New Issue
Block a user