Skip to content

Commit

Permalink
refactor: don't send requestSinks command at connect
Browse files Browse the repository at this point in the history
Sinks are sent at connect time and updated as necessary, so drop the request command.
  • Loading branch information
andyholmes committed Dec 2, 2024
1 parent 734ef1e commit 8920b6d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
8 changes: 0 additions & 8 deletions installed-tests/suites/plugins/testSystemvolumePlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,6 @@ describe('The systemvolume plugin', function () {
expect(localPlugin).toBeDefined();
});

it('sends streams when connected', function () {
spyOn(localPlugin, '_sendSinkList');

testRig.setConnected(true);

expect(localPlugin._sendSinkList).toHaveBeenCalled();
});

it('sends a list of streams when requested', async function () {
spyOn(remoteDevice, 'handlePacket').and.callThrough();

Expand Down
6 changes: 0 additions & 6 deletions src/service/plugins/systemvolume.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,6 @@ const SystemVolumePlugin = GObject.registerClass({
}
}

connected() {
super.connected();

this._sendSinkList();
}

/**
* Handle a request to change an output
*
Expand Down

0 comments on commit 8920b6d

Please sign in to comment.