summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-04-22 01:40:19 +0200
committerCarl Hetherington <cth@carlh.net>2021-04-22 15:42:11 +0200
commit704c71ae870d8bfb7811567406f111e2f1efdc03 (patch)
tree6d7201dd722aab1a9d81718c43862943d841c6f5
parent92472d51372c552fdc2c85a1197b326470addf64 (diff)
Wait a while for unmounts to go through in case we have to authenticate the user.
-rw-r--r--src/tools/dcpomatic_disk.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/dcpomatic_disk.cc b/src/tools/dcpomatic_disk.cc
index d199c4ace..a3b351c85 100644
--- a/src/tools/dcpomatic_disk.cc
+++ b/src/tools/dcpomatic_disk.cc
@@ -290,7 +290,8 @@ private:
if (!_nanomsg.send(drive.as_xml(), 2000)) {
throw CommunicationFailedError ();
}
- auto reply = _nanomsg.receive (2000);
+ /* The reply may have to wait for the user to authenticate, so let's wait a while */
+ auto reply = _nanomsg.receive (30000);
if (!reply || *reply != DISK_WRITER_OK) {
auto * m = new MessageDialog (
this,