mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-02 14:51:20 -05:00
b0bf3506dc
Each printer choice in the Print dialog started a new thread to read the driver's paper sizes, even while earlier reads were still running. A driver that stalls (printer enumeration has no time limit) left one thread behind per printer change. A new read now waits for the running worker. Only the newest choice is read once that worker ends. When the newest still-running worker has run 15 seconds, the waiting read starts beside it, up to 4 workers in all. A read that waits 15 seconds with 4 stalled workers gets no driver sizes, and the dialog keeps its own sizes. The lookup came from #10511.