Skip to content

Commit

Permalink
Merge pull request #1595 from jellyfin/error
Browse files Browse the repository at this point in the history
Fix issue with sync menu and excessive logging
  • Loading branch information
dkanada committed Jul 23, 2020
2 parents 03ef599 + a8a85df commit 7c24727
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/components/playback/playbackmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ define(['events', 'datetime', 'appSettings', 'itemHelper', 'pluginManager', 'pla
const now = (new Date).getTime();

if (method !== reportPlaybackLastMethod || now - (reportPlaybackLastTime || 0) >= reportPlaybackLogDelay) {
console.debug(method + '-' + JSON.stringify(info));
reportPlaybackLastMethod = method;
reportPlaybackLastTime = now;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/syncPlay/groupSelectionMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function showNewJoinGroupSelection (button, user, apiClient) {
actionsheet.show(menuOptions).then(function (id) {
if (id == 'new-group') {
apiClient.createSyncPlayGroup();
} else {
} else if (id) {
apiClient.joinSyncPlayGroup({
GroupId: id,
PlayingItemId: playingItemId
Expand Down
4 changes: 4 additions & 0 deletions src/components/syncPlay/syncPlayManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ class SyncPlayManager {
if (!this.lastPlaybackWaiting) {
this.lastPlaybackWaiting = new Date();
}

events.trigger(this, 'waiting');
}

Expand Down Expand Up @@ -288,6 +289,7 @@ class SyncPlayManager {
player.setPlaybackRate(this.localPlayerPlaybackRate);
this.localPlayerPlaybackRate = 1.0;
}

this.currentPlayer = null;
this.playbackRateSupported = false;
}
Expand Down Expand Up @@ -433,6 +435,7 @@ class SyncPlayManager {
});
return;
}

// Get playing item id
let playingItemId;
try {
Expand Down Expand Up @@ -619,6 +622,7 @@ class SyncPlayManager {
if (this.currentPlayer) {
this.currentPlayer.setPlaybackRate(1);
}

this.clearSyncIcon();
}

Expand Down

0 comments on commit 7c24727

Please sign in to comment.