@@ -94,7 +94,7 @@ void StreamNode::work_gpu()
// printf("Node %s push data to %s\n", name_.c_str(), output_buffer.first.c_str());
}
- }while(packet_size > 0);
+ }while(packet_size > 0 && running_);
printf("C++ Demo: %d frames\n", frame_index);