Improve thread-safety of error and warning message handling.

Ensures all message reading occurs before thread shutdown.
This commit is contained in:
Lovell Fuller
2026-01-20 22:23:13 +00:00
parent 66764b359b
commit af89127208
15 changed files with 71 additions and 66 deletions

View File

@@ -244,7 +244,7 @@ Napi::Value _maxColourDistance(const Napi::CallbackInfo& info) {
}
// Calculate colour distance
maxColourDistance = image1.dE00(image2).max();
} catch (vips::VError const &err) {
} catch (std::runtime_error const &err) {
throw Napi::Error::New(env, err.what());
}