Start first RPC id at 1 rather than 0
This caused an issue in the JS
This commit is contained in:
parent
f5551ffcae
commit
0ed5ba2d8e
|
@ -233,7 +233,7 @@ static JSGlobalContextRef s_context;
|
|||
}
|
||||
|
||||
+ (RPCObjectID)storeObject:(JSObjectRef)object {
|
||||
static RPCObjectID s_next_id = 0;
|
||||
static RPCObjectID s_next_id = 1;
|
||||
RPCObjectID next_id = s_next_id++;
|
||||
JSValueProtect(s_context, object);
|
||||
s_objects[next_id] = object;
|
||||
|
|
Loading…
Reference in New Issue