mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:25:52 +02:00
callback return upon request if not running
This commit is contained in:
parent
28ab4096d0
commit
0cbaea4e27
1 changed files with 2 additions and 0 deletions
|
@ -36,6 +36,8 @@ bool OculusAPIPlugin::isRunning() const {
|
||||||
void OculusAPIPlugin::requestNonceAndUserID(NonceUserIDCallback callback) {
|
void OculusAPIPlugin::requestNonceAndUserID(NonceUserIDCallback callback) {
|
||||||
#ifdef OCULUS_APP_ID
|
#ifdef OCULUS_APP_ID
|
||||||
if (!isRunning()) {
|
if (!isRunning()) {
|
||||||
|
qCWarning(oculusLog) << "Oculus request failed: Oculus platform plugin not running";
|
||||||
|
callback("", "");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue