Skip to content

Commit

Permalink
attempting to address crash on PIE exit - #24
Browse files Browse the repository at this point in the history
  • Loading branch information
adynathos committed Aug 19, 2018
1 parent 65d0b24 commit efc79d3
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Source/AugmentedUnreality/AURDriverThreaded.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,14 @@ void UAURDriverThreaded::SetFrameResolution(FIntPoint const & new_res)

void UAURDriverThreaded::NotifyVideoPropertiesChange()
{
AsyncTask(ENamedThreads::GameThread, [this]() {
UE_LOG(LogAUR, Log, TEXT("NotifyVideoSourceStatusChange"))
if (GetCurrentDriver() != nullptr) {
this->OnVideoPropertiesChange.Broadcast(this);
}
});
if (!this->IsPendingKill()) {
AsyncTask(ENamedThreads::GameThread, [this]() {
UE_LOG(LogAUR, Log, TEXT("NotifyVideoSourceStatusChange"))
if (GetCurrentDriver() != nullptr) {
this->OnVideoPropertiesChange.Broadcast(this);
}
});
}
}

void UAURDriverThreaded::NotifyCalibrationStatusChange()
Expand Down

0 comments on commit efc79d3

Please sign in to comment.