projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a458c2
)
Insert a delay to make sure the QUIT message arrives (#2018).
author
Carl Hetherington
<cth@carlh.net>
Wed, 26 May 2021 21:06:52 +0000
(23:06 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 26 May 2021 21:06:52 +0000
(23:06 +0200)
I have no idea why this is necessary, but the nanomsg documentation
suggests it.
src/tools/dcpomatic_disk.cc
patch
|
blob
|
history
diff --git
a/src/tools/dcpomatic_disk.cc
b/src/tools/dcpomatic_disk.cc
index 67705ffcb65d941d97f2960bfdf337b28da19cb9..784dc4a815a0ac25d1f9d49a99fad4c2cf4db932 100644
(file)
--- 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: