History

call saveRecordingToAsset callback on correct thread

Seth Alves committed 8 years ago

Commit 87a67a31 parent be23d071 file · +2 −1Browse files

Showing the changes to libraries/script-engine/src/RecordingScriptingInterface.cpp (1 of 1 file). Show all

Unified · Split

libraries/script-engine/src/RecordingScriptingInterface.cpp+2−1
@@ -243,7 +243,8 @@ bool RecordingScriptingInterface::saveRecordingToAsset(QScriptValue getClipAtpUr · 242 unmodified lines
243243 }
244244
245245 if (auto upload = DependencyManager::get<AssetClient>()->createUpload(recording::Clip::toBuffer(_lastClip))) {
246− QObject::connect(upload, &AssetUpload::finished, this, [=](AssetUpload* upload, const QString& hash) mutable {
246+ QObject::connect(upload, &AssetUpload::finished,
247+ getClipAtpUrl.engine(), [=](AssetUpload* upload, const QString& hash) mutable {
247248 QString clip_atp_url = "";
248249
249250 if (upload->getError() == AssetUpload::NoError) {