qtd3dservice: Add some missing sleeps
authorAndrew Knight <andrew.knight@digia.com>
Thu, 13 Mar 2014 13:03:07 +0000 (15:03 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 18 Mar 2014 07:21:56 +0000 (08:21 +0100)
The service should sleep in all situations where it intends to try
a task on the next loop iteration. This was missing in two cases in the
Xap handler.

Change-Id: Id32ac66d64e0702fdb00cedd2fc78355d6bd0587
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
src/qtd3dservice/xaphandler.cpp

index 3c306e4..1820eb7 100644 (file)
@@ -308,6 +308,7 @@ extern int handleXapDevice(int deviceIndex, const QString &app, const QString &l
                 if (FAILED(hr)) {
                     qCWarning(lcD3DService) << "Unable to create the shader source directory:"
                                             << coreConServer->formatError(hr);
+                    Sleep(1000);
                     continue;
                 }
             }
@@ -326,6 +327,7 @@ extern int handleXapDevice(int deviceIndex, const QString &app, const QString &l
                 if (FAILED(hr)) {
                     qCWarning(lcD3DService) << "Unable to create the shader source directory:"
                                             << coreConServer->formatError(hr);
+                    Sleep(1000);
                     continue;
                 }
             }