Fix thinko in progress reporting.
[dcpomatic.git] / src / lib / copy_to_drive_job.cc
index f7a5dfd1165e04e152a7c74f9f342ba91c57bb84..b7bb5a60d26844334c4bcb383179dec484487056 100644 (file)
@@ -67,8 +67,8 @@ CopyToDriveJob::run ()
                throw CopyError ("Could not communicate with writer process", 0);
        }
 
+       bool formatting = false;
        while (true) {
-               bool formatting = false;
                string s = _nanomsg.blocking_get ();
                if (s == DISK_WRITER_OK) {
                        set_state (FINISHED_OK);