Skip to content

Commit

Permalink
Merge pull request #43 from brutall/master
Browse files Browse the repository at this point in the history
Fixed a crash that happened when locking the screen.
  • Loading branch information
kgshank committed Oct 18, 2018
2 parents 0cc406f + 0718304 commit 59aedcc
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions sound-output-device-chooser@kgshank.net/convenience.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,13 @@ function getProfilesForPort(portName, card) {
for (let port of card.ports) {
if(portName === port.name) {
let profiles = [];
for (let profile of port.profiles) {
if(profile.indexOf('+input:') == -1) {
for (let cardProfile of card.profiles) {
if(profile === cardProfile.name) {
profiles.push(cardProfile);
if (port.profiles) {
for (let profile of port.profiles) {
if(profile.indexOf('+input:') == -1) {
for (let cardProfile of card.profiles) {
if(profile === cardProfile.name) {
profiles.push(cardProfile);
}
}
}
}
Expand Down

0 comments on commit 59aedcc

Please sign in to comment.