summaryrefslogtreecommitdiff
path: root/lib/packet.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/packet.c')
-rw-r--r--lib/packet.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/packet.c b/lib/packet.c
index 07baf5e..60ac18b 100644
--- a/lib/packet.c
+++ b/lib/packet.c
@@ -130,8 +130,6 @@ _write_cb (struct bufferevent *bev, void *ctx)
#endif
if (event_base_loopbreak (pkt->conn->evb) < 0)
abort (); /* FIXME */
- if (!pkt->conn->callbacks.sent_cb) /* Callback owns the packet now. */
- rs_packet_destroy (pkt);
}
static void