aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--openbsc/src/paging.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/openbsc/src/paging.c b/openbsc/src/paging.c
index e647b33be..df11da0e6 100644
--- a/openbsc/src/paging.c
+++ b/openbsc/src/paging.c
@@ -278,6 +278,8 @@ void paging_request_stop(struct gsm_bts *_bts, struct gsm_subscriber *subscr,
{
struct gsm_bts *bts = NULL;
+ _paging_request_stop(_bts, subscr, lchan);
+
do {
/*
* FIXME: Don't use the lac of the subscriber...
@@ -290,7 +292,8 @@ void paging_request_stop(struct gsm_bts *_bts, struct gsm_subscriber *subscr,
break;
/* Stop paging */
- _paging_request_stop(bts, subscr, NULL);
+ if (bts != _bts)
+ _paging_request_stop(bts, subscr, NULL);
} while (1);
}