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