From 782cfd1fd08f1a2ca81e1f155869ba8b3f9be23f Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Mon, 14 Nov 2022 17:36:34 +0100 Subject: [PATCH] #ATIS * Added honor Stop() functionality --- Moose Development/Moose/Ops/ATIS.lua | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Moose Development/Moose/Ops/ATIS.lua b/Moose Development/Moose/Ops/ATIS.lua index c9ae8ea41..083aa86a4 100644 --- a/Moose Development/Moose/Ops/ATIS.lua +++ b/Moose Development/Moose/Ops/ATIS.lua @@ -590,7 +590,7 @@ _ATIS = {} --- ATIS class version. -- @field #string version -ATIS.version = "0.9.10" +ATIS.version = "0.9.11" ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- TODO list @@ -1319,8 +1319,10 @@ function ATIS:onafterStatus( From, Event, To ) text = text .. string.format( ", Relay unit=%s (alive=%s)", tostring( self.relayunitname ), relayunitstatus ) end self:T( self.lid .. text ) - - self:__Status( -60 ) + + if not self:Is("Stopped") then + self:__Status( -60 ) + end end ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- @@ -1348,9 +1350,11 @@ function ATIS:onafterCheckQueue( From, Event, To ) end end - - -- Check back in 5 seconds. - self:__CheckQueue( -math.abs( self.dTQueueCheck ) ) + + if not self:Is("Stopped") then + -- Check back in 5 seconds. + self:__CheckQueue( -math.abs( self.dTQueueCheck ) ) + end end --- Broadcast ATIS radio message.