From e117d81cf3a73089bd6c8ce2fb69a70411fd7d91 Mon Sep 17 00:00:00 2001 From: Richard Nyberg Date: Sat, 24 Feb 2007 21:22:55 +0000 Subject: [PATCH] Only trigger error handling if an error actually occured. :P --- btpd/content.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/btpd/content.c b/btpd/content.c index 1ea67ee..bf6caed 100644 --- a/btpd/content.c +++ b/btpd/content.c @@ -144,7 +144,8 @@ cm_write_done(struct torrent *tp) btpd_ev_del(&cm->save_timer); if (!err) cm_save(tp); - cm_on_error(tp); + else + cm_on_error(tp); } void