aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Whyte <keith@rhizomatica.org>2022-10-23 01:33:33 +0100
committerKeith Whyte <keith@rhizomatica.org>2022-10-23 01:46:55 +0100
commit9a1659e129f872842683d5fed1e7e3beda57b588 (patch)
treeffe4cd2ada725450e4357c819ef9dad8cae1503b
parentdbed6898fc5faebc7d4c66a6ba1b5a6347f2d204 (diff)
Increase sanity in smsq_take_next_sms()
-rw-r--r--src/libmsc/sms_queue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libmsc/sms_queue.c b/src/libmsc/sms_queue.c
index 978b01f77..98a8815d2 100644
--- a/src/libmsc/sms_queue.c
+++ b/src/libmsc/sms_queue.c
@@ -276,7 +276,7 @@ struct gsm_sms *smsq_take_next_sms(struct gsm_network *net,
{
struct gsm_sms *sms;
int wrapped = 0;
- int sanity = 100;
+ int sanity = 350;
char started_with_msisdn[last_msisdn_buflen];
OSMO_STRLCPY_ARRAY(started_with_msisdn, last_msisdn);
@@ -311,7 +311,7 @@ struct gsm_sms *smsq_take_next_sms(struct gsm_network *net,
return sms;
}
- DEBUGP(DLSMS, "SMS queue: no SMS to be sent, tried %d times.\n", sanity+100);
+ DEBUGP(DLSMS, "SMS queue: no SMS to be sent, tried %d times.\n", sanity+350);
return NULL;
}