Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common/main/cpp/native_c4btsocketfactory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ static void btAttached(C4Socket* socket) {
return;
}

jstring jPeerID = env->NewStringUTF((const char *)ctx->peerID.buf);
jstring jPeerID = toJString(env, ctx->peerID);

// Balanced by the c4socket_release in NativeC4Socket_closed. Mirrors btOpen.
c4socket_retain(socket);
Expand Down