[android] - checking is renderer is not destroyed before delivering the snapshot

This commit is contained in:
Łukasz Paczos
2018-04-30 18:32:37 +02:00
committed by Tobrun
parent f0b5a56a4b
commit 5388f9ea2c
3 changed files with 10 additions and 27 deletions

View File

@@ -98,10 +98,6 @@ private:
void onSurfaceChanged(JNIEnv&, jint width, jint height);
void onResume(JNIEnv&);
void onPause(JNIEnv&);
private:
GenericUniqueWeakObject<MapRenderer> javaPeer;
@@ -124,7 +120,7 @@ private:
std::mutex updateMutex;
bool framebufferSizeChanged = false;
std::atomic<bool> paused {false};
std::atomic<bool> destroyed {false};
std::unique_ptr<SnapshotCallback> snapshotCallback;
};