Fixed exception when deleting SDR source twice.
This commit is contained in:
parent
f1952f9d13
commit
c3d651da74
|
|
@ -2,6 +2,7 @@
|
|||
- Added ability to delete files, when authorized.
|
||||
- Added locking to connector-based SDR sources.
|
||||
- Improved EIBI schedules display on the map.
|
||||
- Fixed exception when disabling SDR source twice.
|
||||
- Fixed HL2 noise after HL2 first initialized.
|
||||
- No longer reporting AIS messages to IGATE.
|
||||
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ openwebrx (1.2.45) bullseye jammy; urgency=low
|
|||
* Added ability to delete files, when authorized.
|
||||
* Added locking to connector-based SDR sources.
|
||||
* Improved EIBI schedules display on the map.
|
||||
* Fixed exception when disabling SDR source twice.
|
||||
* Fixed HL2 noise after HL2 first initialized.
|
||||
* No longer reporting AIS messages to IGATE.
|
||||
|
||||
|
|
|
|||
|
|
@ -101,16 +101,19 @@ class SourceStateHandler(SdrSourceEventClient):
|
|||
self.source.removeClient(self)
|
||||
|
||||
def onFail(self):
|
||||
del self.pm[self.key]
|
||||
if self.key in self.pm:
|
||||
del self.pm[self.key]
|
||||
|
||||
def onDisable(self):
|
||||
del self.pm[self.key]
|
||||
if self.key in self.pm:
|
||||
del self.pm[self.key]
|
||||
|
||||
def onEnable(self):
|
||||
self.pm[self.key] = self.source
|
||||
|
||||
def onShutdown(self):
|
||||
del self.pm[self.key]
|
||||
if self.key in self.pm:
|
||||
del self.pm[self.key]
|
||||
|
||||
|
||||
class ActiveSdrSources(PropertyReadOnly):
|
||||
|
|
|
|||
Loading…
Reference in New Issue