diff --git a/src/module/decode/state/ChannelState.java b/src/module/decode/state/ChannelState.java index a3218dd8..3b538349 100644 --- a/src/module/decode/state/ChannelState.java +++ b/src/module/decode/state/ChannelState.java @@ -180,7 +180,7 @@ public class ChannelState extends Module implements ICallEventProvider, { if( mMonitoring.compareAndSet( false, true ) ) { - if( mRunningMonitor == null ) + if( mRunningMonitor == null && mStateMonitor != null ) { mRunningMonitor = mThreadPoolManager.scheduleFixedRate( ThreadType.DECODER, mStateMonitor, 20, TimeUnit.MILLISECONDS ); @@ -205,11 +205,6 @@ public class ChannelState extends Module implements ICallEventProvider, { mThreadPoolManager.cancel( mRunningMonitor ); } - else - { - throw new RuntimeException( "Channel state monitor's scheduled " - + "future pointer was null when trying to stop the monitor" ); - } mRunningMonitor = null; }