aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2019-03-06 16:00:41 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2019-03-07 04:17:53 +0100
commit34a36da3ef22d60f127308facf49e94a3615ec7e (patch)
tree38fd097c70daccd2ad70663ec8f623a5b32d12c2
parent864d32c043e92efbc6ffabed88a22ed6fc6facf8 (diff)
SMS queue: properly log failed attempts number
-rw-r--r--src/libmsc/sms_queue.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libmsc/sms_queue.c b/src/libmsc/sms_queue.c
index c5d2fc2..c924dde 100644
--- a/src/libmsc/sms_queue.c
+++ b/src/libmsc/sms_queue.c
@@ -151,11 +151,12 @@ static void sms_pending_failed(struct gsm_sms_pending *pending, int paging_error
struct gsm_network *net = pending->vsub->vlr->user_ctx;
struct gsm_sms_queue *smsq;
+ pending->failed_attempts++;
LOGP(DLSMS, LOGL_NOTICE, "Sending SMS %llu failed %d times.\n",
pending->sms_id, pending->failed_attempts);
smsq = net->sms_queue;
- if (++pending->failed_attempts < smsq->max_fail)
+ if (pending->failed_attempts < smsq->max_fail)
return sms_pending_resend(pending);
sms_pending_free(pending);