digidem / mapeo-map-server

Offline map style and tile server
MIT License
5 stars 2 forks source link

fix: fix race condition with piscina and worker #38

Closed achou11 closed 2 years ago

achou11 commented 2 years ago

noticed an issue where the finally call on the piscina instance would execute before the final two messages from the worker (final progress and complete) would be received by the port. for some reason, moving the post message calls in the worker to before we close the db instances solved the problem, although I'm a little puzzled as to why (does one of those calls send some kind of signal that piscina listens for?)