Skip to content

Commit 8523eaf

Browse files
Drop jobs without wait on a full queue (#127)
1 parent 616727a commit 8523eaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OpenStreetMap-esp32.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ void OpenStreetMap::runJobs(const std::vector<TileJob> &jobs)
255255
pendingJobs.store(jobs.size());
256256
startJobsMS = millis();
257257
for (const TileJob &job : jobs)
258-
if (xQueueSend(jobQueue, &job, portMAX_DELAY) != pdPASS)
258+
if (xQueueSend(jobQueue, &job, 0) != pdPASS)
259259
{
260260
log_e("Failed to enqueue TileJob");
261261
--pendingJobs;

0 commit comments

Comments
 (0)