Skip to content

Commit

Permalink
fix: allocate new context error
Browse files Browse the repository at this point in the history
  • Loading branch information
anjihang authored and answershuto committed Jul 7, 2021
1 parent c5f98b2 commit 04b30db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridge/kraken_bridge.cc
Expand Up @@ -126,7 +126,7 @@ int32_t allocateNewContext(int32_t targetContextId) {
.c_str());
auto context = new kraken::JSBridge(targetContextId, printError);
contextPool[targetContextId] = context;
return poolIndex;
return targetContextId;
}

void *getJSContext(int32_t contextId) {
Expand Down

0 comments on commit 04b30db

Please sign in to comment.