X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Ftools%2Fdcpomatic_disk.cc;h=784dc4a815a0ac25d1f9d49a99fad4c2cf4db932;hb=f75c4440abe1a1cd9838301ac4e3a153178ceb94;hp=67705ffcb65d941d97f2960bfdf337b28da19cb9;hpb=6a458c24f4ebf1d654e036fbb839790080a25eff;p=dcpomatic.git diff --git a/src/tools/dcpomatic_disk.cc b/src/tools/dcpomatic_disk.cc index 67705ffcb..784dc4a81 100644 --- a/src/tools/dcpomatic_disk.cc +++ b/src/tools/dcpomatic_disk.cc @@ -173,6 +173,10 @@ public: ~DOMFrame () { _nanomsg.send(DISK_WRITER_QUIT "\n", 2000); + /* This seems really horrible but it's suggested by the examples on nanomsg.org, so... + * Without this the quit is not received (at least sometimes) causing #2018. + */ + dcpomatic_sleep_seconds (1); } private: