Skip to content

Commit

Permalink
disconnect IPC connection at IpcLink.closeNative()
Browse files Browse the repository at this point in the history
  • Loading branch information
t-horikawa committed Sep 1, 2023
1 parent b5aea9c commit e18d0f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions modules/ipc/src/main/native/include/udf_wires.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,7 @@ class session_wire_container
}
}

~session_wire_container() {
request_wire_.disconnect();
}
~session_wire_container() = default;

bool is_deletable() {
std::lock_guard<std::mutex> lock(mtx_set_);
Expand Down
1 change: 1 addition & 0 deletions modules/ipc/src/main/native/src/wireJNI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ JNIEXPORT void JNICALL Java_com_tsurugidb_tsubakuro_channel_ipc_IpcLink_closeNat
session_wire_container* swc = reinterpret_cast<session_wire_container*>(static_cast<std::uintptr_t>(handle));

if (swc != nullptr) {
swc->get_request_wire().disconnect();
swc->get_response_wire().close();
}
}
Expand Down

0 comments on commit e18d0f7

Please sign in to comment.