gotwalt / sonos

Control Sonos speakers with Ruby
MIT License
383 stars 77 forks source link

Fixed bug where the speaker saved to group would not get the master_spea... #28

Closed pfeffed closed 10 years ago

pfeffed commented 10 years ago

Sam,

This PR fixes an issue with my one of my previous contributions. The speaker.group_master was not updating when the construct_groups method was called. As a result, calling system.groups.first.play was not routing properly to the groups master, resulting in a nil object error. This update makes sure all speakers and groups get updated with the proper group_master and master_speaker attributes.

Regards,