@@ -198,27 +198,6 @@ def update_cdsp_volume(self, volume_db: float):
198198 self .update_cdsp_statefile (volume_db )
199199 return False
200200
201- # def store_volume(self):
202- # try:
203- # if self._cdsp.is_connected() is False:
204- # self._cdsp.connect()
205-
206- # volume_db = float(self._cdsp.volume.main())
207- # mute = 1 if self._cdsp.mute.main() else 0
208- # self.update_cdsp_statefile(volume_db, mute)
209-
210- # except (ConnectionRefusedError, IOError) as e:
211- # logging.warning('store volume: no cdsp')
212-
213- def sig_hup (self , signum , frame ):
214- # not needed anymore cdsp save it's own statefile now
215- #self.store_volume()
216- # force disconnect to prevent a 'hanging' socket during close down of cdsp
217- # if self._cdsp.is_connected():
218- # self._cdsp.disconnect()
219- logging .warning ('sighup for storing current volume isn\' t needed anymore!' )
220-
221-
222201 def update_cdsp_statefile (self , main_volume : float = - 6.0 , main_mute :bool = False ):
223202 """ Update statefile from camilladsp. Used for CamillaDSP 2.x and higher."""
224203 logging .info ('update volume state file : %.2f dB, mute: %d' , main_volume ,main_mute )
@@ -329,7 +308,6 @@ def get_config(config_file: Path):
329308
330309 signal .signal (signal .SIGINT , monitor .exit_gracefully )
331310 signal .signal (signal .SIGTERM , monitor .exit_gracefully )
332- signal .signal (signal .SIGHUP , cdsp .sig_hup )
333311
334312 monitor .run_monitor ()
335313
0 commit comments