File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ extern "C" void app_main(void) {
175
175
printf (" Couldn't listen!\n " );
176
176
}
177
177
178
- auto camera_task_fn = [&streamer](auto &m, auto & cv) {
178
+ auto camera_task_fn = [&streamer](auto &m, auto & cv) -> bool {
179
179
static float seconds_per_frame = 0 .1f ;
180
180
static auto start = std::chrono::high_resolution_clock::now ();
181
181
static auto last_image_time = start;
@@ -192,9 +192,10 @@ extern "C" void app_main(void) {
192
192
}
193
193
std::unique_lock<std::mutex> lk (m);
194
194
cv.wait_for (lk, 1ms);
195
+ return false ;
195
196
};
196
197
197
- auto server_task_fn = [&streamer, &MasterSocket](auto &m, auto & cv) {
198
+ auto server_task_fn = [&streamer, &MasterSocket](auto &m, auto & cv) -> bool {
198
199
fmt::print (" Server accepting client...\n " );
199
200
sockaddr_in ClientAddr; // address parameters of a new RTSP client
200
201
socklen_t ClientAddrLen = sizeof (ClientAddr);
@@ -206,6 +207,7 @@ extern "C" void app_main(void) {
206
207
207
208
std::unique_lock<std::mutex> lk (m);
208
209
cv.wait_for (lk, 30ms);
210
+ return false ;
209
211
};
210
212
auto server_task = espp::Task::make_unique (espp::Task::Config{
211
213
.name = " Server Task" ,
You can’t perform that action at this time.
0 commit comments