diff options
author | Andrew Knight <andrew.knight@digia.com> | 2014-03-13 15:03:07 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-18 08:21:56 +0100 |
commit | b9a690e5daa458e078d57cb19ddcf001c0be7e87 (patch) | |
tree | 810b420e12f477f1a6fafdde13490dcab10fa7f6 | |
parent | a796e09922c53824aa9a503688710eaa8d0bfa05 (diff) | |
download | qttools-b9a690e5daa458e078d57cb19ddcf001c0be7e87.tar.gz |
qtd3dservice: Add some missing sleeps
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>
-rw-r--r-- | src/qtd3dservice/xaphandler.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qtd3dservice/xaphandler.cpp b/src/qtd3dservice/xaphandler.cpp index 3c306e40a..1820eb76f 100644 --- a/src/qtd3dservice/xaphandler.cpp +++ b/src/qtd3dservice/xaphandler.cpp @@ -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; } } |