Skip to content

Commit

Permalink
kill self will close #1663
Browse files Browse the repository at this point in the history
  • Loading branch information
yanhuqing666 committed Feb 20, 2020
1 parent 6cebf3a commit 5682b00
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ private static void killQuery(long id, ServerConnection c) {
private static void killConnection(long id, ServerConnection c) {
// kill myself
if (id == c.getId()) {
getOkPacket(c).write(c);
OkPacket packet = getOkPacket(c);
packet.setPacketId(0);
packet.write(c);
return;
}

Expand Down

0 comments on commit 5682b00

Please sign in to comment.