| 787 | } |
| 788 | |
| 789 | void EptReader::checkTile(const ept::TileContents& tile) |
| 790 | { |
| 791 | if (tile.error().size()) |
| 792 | { |
| 793 | m_p->done = true; |
| 794 | // Since tasks for all tiles were added to the queue, clear them |
| 795 | // before stopping the pool. |
| 796 | m_p->pool->clearTasks(); |
| 797 | m_p->pool->stop(); |
| 798 | log()->get(LogLevel::Warning) << |
| 799 | "Use readers.ept.ignore_unreadable to ignore this error" << |
| 800 | std::endl; |
| 801 | throwError("Error reading tile " + tile.key().toString() + ": " + |
| 802 | tile.error()); |
| 803 | } |
| 804 | } |
| 805 | |
| 806 | |
| 807 | // This code runs in a single thread, so doesn't need locking. |