mirror of
				https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
				synced 2025-11-04 05:53:26 +00:00 
			
		
		
		
	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.
This commit is contained in:
		@@ -341,8 +341,10 @@ int paging_request(struct gsm_network *network, struct gsm_subscriber *subscr,
 | 
				
			|||||||
			break;
 | 
								break;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		rc = paging_request_bts(bts, subscr, type, cbfn, data);
 | 
							rc = paging_request_bts(bts, subscr, type, cbfn, data);
 | 
				
			||||||
		if (rc < 0)
 | 
							if (rc < 0) {
 | 
				
			||||||
 | 
								paging_request_stop(NULL, subscr, NULL, NULL);
 | 
				
			||||||
			return rc;
 | 
								return rc;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
		num_pages += rc;
 | 
							num_pages += rc;
 | 
				
			||||||
	} while (1);
 | 
						} while (1);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user