Wait a while for unmounts to go through in case we have to authenticate the user.
authorCarl Hetherington <cth@carlh.net>
Wed, 21 Apr 2021 23:40:19 +0000 (01:40 +0200)
committerCarl Hetherington <cth@carlh.net>
Thu, 22 Apr 2021 13:42:11 +0000 (15:42 +0200)
src/tools/dcpomatic_disk.cc

index d199c4ace759b84b5618e35f96532ed446c6b798..a3b351c85fdc5d28ea11d575b5ead69879b0ef5f 100644 (file)
@@ -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,