We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74c549a commit 72c1813Copy full SHA for 72c1813
1 file changed
amplipi/streams/airplay.py
@@ -149,10 +149,11 @@ def _deactivate(self):
149
self.proc.kill()
150
self.proc.communicate()
151
152
- self.volume_process.terminate()
153
- if self.volume_process.wait(1) != 0:
154
- logger.info('killing shairport vol sync')
155
- self.volume_process.kill()
+ if self.volume_process is not None:
+ self.volume_process.terminate()
+ if self.volume_process.wait(1) != 0:
+ logger.info('killing shairport vol sync')
156
+ self.volume_process.kill()
157
if '_log_file' in self.__dir__() and self._log_file:
158
self._log_file.close()
159
if self.src:
0 commit comments