From 933b9ef01422e49d58dcac17c4d3a7e7021a5124 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Mon, 8 Jun 2020 14:34:29 +0100 Subject: [PATCH] Fix crash with POCSAG and no network. --- MMDVMHost.cpp | 3 ++- Version.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/MMDVMHost.cpp b/MMDVMHost.cpp index 40f954c..924d4a9 100644 --- a/MMDVMHost.cpp +++ b/MMDVMHost.cpp @@ -610,7 +610,8 @@ int CMMDVMHost::run() m_pocsag = new CPOCSAGControl(m_pocsagNetwork, m_display); - pocsagTimer.start(); + if (m_pocsagNetwork != NULL) + pocsagTimer.start(); } bool remoteControlEnabled = m_conf.getRemoteControlEnabled(); diff --git a/Version.h b/Version.h index 19a3d8e..101ca94 100644 --- a/Version.h +++ b/Version.h @@ -19,6 +19,6 @@ #if !defined(VERSION_H) #define VERSION_H -const char* VERSION = "20200518"; +const char* VERSION = "20200608"; #endif