Browse code

sca: return on rpc fault

Daniel-Constantin Mierla authored on 13/04/2021 07:50:46
Showing 1 changed files
... ...
@@ -184,6 +184,7 @@ void sca_rpc_deactivate_all_subscriptions(rpc_t *rpc, void *ctx)
184 184
 
185 185
 	if((ht = sca->subscriptions) == NULL) {
186 186
 		rpc->fault(ctx, 500, "Empty subscription table!");
187
+		return;
187 188
 	}
188 189
 
189 190
 	for(i = 0; i < ht->size; i++) {