mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-07-31 01:15:48 -04:00
fix race condition when persisting large numbers of items
This commit is contained in:
@@ -1123,8 +1123,11 @@ jboolean JNICALL ScriptMethodsObjectCreateNamespace::persistObject(JNIEnv *env,
|
||||
ServerObject* object = NULL;
|
||||
if (!JavaLibrary::getObject(target, object))
|
||||
return JNI_FALSE;
|
||||
object->persist();
|
||||
return JNI_TRUE;
|
||||
if (object->persist()) {
|
||||
return JNI_TRUE;
|
||||
} else {
|
||||
return JNI_FALSE;
|
||||
}
|
||||
} // JavaLibrary::persistObject
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user