mirror of
https://github.com/Motion-Project/motion.git
synced 2026-02-05 12:31:43 -05:00
6
webu.c
6
webu.c
@@ -1297,9 +1297,6 @@ static int webu_answer_strm(void *cls
|
||||
return MHD_YES;
|
||||
}
|
||||
|
||||
/* Do not answer a request until the motion loop has completed at least once */
|
||||
if (webui->cnt->passflag == 0) return MHD_NO;
|
||||
|
||||
if (strcmp (method, "GET") != 0){
|
||||
MOTION_LOG(NTC, TYPE_STREAM, NO_ERRNO ,_("Invalid Method requested: %s"),method);
|
||||
return MHD_NO;
|
||||
@@ -1316,6 +1313,9 @@ static int webu_answer_strm(void *cls
|
||||
return retcd;
|
||||
}
|
||||
|
||||
/* Do not answer a request until the motion loop has completed at least once */
|
||||
if (webui->cnt->passflag == 0) return MHD_NO;
|
||||
|
||||
if (webui->cnt->webcontrol_finish) return MHD_NO;
|
||||
|
||||
if (strlen(webui->clientip) == 0){
|
||||
|
||||
Reference in New Issue
Block a user