From c4466a8c0c2318a04ec9020511bb67024b783495 Mon Sep 17 00:00:00 2001 From: winlin Date: Fri, 3 Apr 2015 12:43:40 +0800 Subject: [PATCH] fix crash bug for hls cleanup. --- trunk/src/app/srs_app_config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/src/app/srs_app_config.cpp b/trunk/src/app/srs_app_config.cpp index 4d50743e5..96c84fdcf 100644 --- a/trunk/src/app/srs_app_config.cpp +++ b/trunk/src/app/srs_app_config.cpp @@ -3414,7 +3414,7 @@ bool SrsConfig::get_hls_cleanup(string vhost) SrsConfDirective* conf = hls->get("hls_cleanup"); - if (!conf && conf->arg0() != "off") { + if (conf && conf->arg0() != "off") { return SRS_CONF_DEFAULT_HLS_CLEANUP; }