Skip to content

Commit 5682b00

Browse files
committed
kill self will close #1663
1 parent 6cebf3a commit 5682b00

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/actiontech/dble/server/handler/KillHandler.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ private static void killQuery(long id, ServerConnection c) {
120120
private static void killConnection(long id, ServerConnection c) {
121121
// kill myself
122122
if (id == c.getId()) {
123-
getOkPacket(c).write(c);
123+
OkPacket packet = getOkPacket(c);
124+
packet.setPacketId(0);
125+
packet.write(c);
124126
return;
125127
}
126128

0 commit comments

Comments
 (0)