From: Carl Hetherington Date: Wed, 21 Apr 2021 23:40:19 +0000 (+0200) Subject: Wait a while for unmounts to go through in case we have to authenticate the user. X-Git-Tag: v2.15.141~40 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=704c71ae870d8bfb7811567406f111e2f1efdc03;p=dcpomatic.git Wait a while for unmounts to go through in case we have to authenticate the user. --- 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,