Skip to content

Commit bc27c28

Browse files
committed
refactor: add lock
1 parent 8660812 commit bc27c28

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

dart_native/android/src/main/jni/dart_native.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ extern "C"
3030
void _addGlobalObject(jobject globalObject, jclass globalClass)
3131
{
3232
globalReferenceMtx.lock();
33-
std::lock_guard<std::mutex> lk(globalReferenceMtx);
3433
std::pair<jclass, int> objPair = std::make_pair(globalClass, 0);
3534
objectGlobalReference[globalObject] = objPair;
3635
globalReferenceMtx.unlock();

0 commit comments

Comments
 (0)