set zm_terminate instead of exit() so that all the cleanup code happens
This commit is contained in:
parent
81048b6191
commit
82a5f3a059
|
@ -837,12 +837,13 @@ void EventStream::runStream() {
|
||||||
|
|
||||||
//checkInitialised();
|
//checkInitialised();
|
||||||
|
|
||||||
if ( type == STREAM_JPEG )
|
if (type == STREAM_JPEG)
|
||||||
fputs("Content-Type: multipart/x-mixed-replace;boundary=" BOUNDARY "\r\n\r\n", stdout);
|
fputs("Content-Type: multipart/x-mixed-replace;boundary=" BOUNDARY "\r\n\r\n", stdout);
|
||||||
|
|
||||||
if ( !event_data ) {
|
if (!event_data) {
|
||||||
sendTextFrame("No event data found");
|
sendTextFrame("No event data found");
|
||||||
exit(0);
|
zm_terminate = true;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
double fps = 1.0;
|
double fps = 1.0;
|
||||||
|
|
Loading…
Reference in New Issue