aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-08-03 11:19:35 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-08-03 11:52:17 +0200
commit48690861431c25ffc031f8cca87de728e7976644 (patch)
treef3ec457c41dfa1ac034e941af9154f1629d2114e /openbsc/src
parent79f1592ce8119c43aec7aeda467147cdaa3e0ef8 (diff)
paging: In case paging failed stop it everywhere
In case we can't page on a BTS then stop it everywhere. The callers of paging_request assume that this is kind of an atomic operation and we should help with that.
Diffstat (limited to 'openbsc/src')
-rw-r--r--openbsc/src/libbsc/paging.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/openbsc/src/libbsc/paging.c b/openbsc/src/libbsc/paging.c
index 8bc10e670..6b46c6dfc 100644
--- a/openbsc/src/libbsc/paging.c
+++ b/openbsc/src/libbsc/paging.c
@@ -341,8 +341,10 @@ int paging_request(struct gsm_network *network, struct gsm_subscriber *subscr,
break;
rc = paging_request_bts(bts, subscr, type, cbfn, data);
- if (rc < 0)
+ if (rc < 0) {
+ paging_request_stop(NULL, subscr, NULL, NULL);
return rc;
+ }
num_pages += rc;
} while (1);