diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-08-07 00:10:59 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-08-07 00:10:59 +0200 |
| commit | 334d3cb564c72bd430a17c6e6f01aeb488fb191c (patch) | |
| tree | 52b4e97d21f24e55b377e5f1e1a11e4e3c22ed3b /src/tools/dcpomatic_disk_writer.cc | |
| parent | e28f10cd045d3a420689c9aafc5abaa64d35fa92 (diff) | |
Check that we have a connection to the disk writer before starting to use it in earnest.
Diffstat (limited to 'src/tools/dcpomatic_disk_writer.cc')
| -rw-r--r-- | src/tools/dcpomatic_disk_writer.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/dcpomatic_disk_writer.cc b/src/tools/dcpomatic_disk_writer.cc index 2c3753e57..a2788e18b 100644 --- a/src/tools/dcpomatic_disk_writer.cc +++ b/src/tools/dcpomatic_disk_writer.cc @@ -460,6 +460,8 @@ try if (*s == DISK_WRITER_QUIT) { exit (EXIT_SUCCESS); + } else if (*s == DISK_WRITER_PING) { + nanomsg->send(DISK_WRITER_PONG "\n", LONG_TIMEOUT); } else if (*s == DISK_WRITER_UNMOUNT) { /* XXX: should do Linux polkit stuff here */ optional<string> xml_head = nanomsg->receive (LONG_TIMEOUT); |
