* Added honor Stop() functionality
This commit is contained in:
Applevangelist 2022-11-14 17:36:34 +01:00
parent d4a06089c9
commit 782cfd1fd0

View File

@ -590,7 +590,7 @@ _ATIS = {}
--- ATIS class version. --- ATIS class version.
-- @field #string version -- @field #string version
ATIS.version = "0.9.10" ATIS.version = "0.9.11"
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- TODO list -- TODO list
@ -1320,7 +1320,9 @@ function ATIS:onafterStatus( From, Event, To )
end end
self:T( self.lid .. text ) self:T( self.lid .. text )
if not self:Is("Stopped") then
self:__Status( -60 ) self:__Status( -60 )
end
end end
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
@ -1349,8 +1351,10 @@ function ATIS:onafterCheckQueue( From, Event, To )
end end
if not self:Is("Stopped") then
-- Check back in 5 seconds. -- Check back in 5 seconds.
self:__CheckQueue( -math.abs( self.dTQueueCheck ) ) self:__CheckQueue( -math.abs( self.dTQueueCheck ) )
end
end end
--- Broadcast ATIS radio message. --- Broadcast ATIS radio message.