Skip to content

Commit

Permalink
Update packets.go
Browse files Browse the repository at this point in the history
  • Loading branch information
methane authored Jun 28, 2024
1 parent 7c77aef commit 3e23eef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packets.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ func (mc *mysqlConn) writePacket(data []byte) error {
// Write packet
if mc.writeTimeout > 0 {
if err := mc.netConn.SetWriteDeadline(time.Now().Add(mc.writeTimeout)); err != nil {
mc.log(err)
mc.cleanup()
mc.log(err)
return err
}
}
Expand Down

0 comments on commit 3e23eef

Please sign in to comment.