X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdelivery.php;h=8fce98774250cdaeeaccda7bd841671cbda1a7ed;hb=e9226eaf45e70bcd5a9a9f66b6b922dbc15c47ba;hp=7c0ba63a6b41b9649cf30e925df64cf089e6ccd8;hpb=1cfcc939c04c0ab3f5a5a3cec8e7fdd3bacd1196;p=friendica.git diff --git a/include/delivery.php b/include/delivery.php index 7c0ba63a6b..8fce987742 100644 --- a/include/delivery.php +++ b/include/delivery.php @@ -381,7 +381,14 @@ function delivery_run(&$argv, &$argc){ if ($deliver_status == (-1)) { logger('notifier: delivery failed: queuing message'); add_to_queue($contact['id'],NETWORK_DFRN,$atom); + + // The message could not be delivered. We mark the contact as "dead" + mark_for_death($contact); + } else { + // We successfully delivered a message, the contact is alive + unmark_for_death($contact); } + break; case NETWORK_OSTATUS: