No need to pass UA_EVENT_REGISTERING to service

This commit is contained in:
Juha Heinanen
2022-06-09 10:10:06 +03:00
parent dec984a37f
commit b7d5a5395c
2 changed files with 0 additions and 4 deletions

View File

@ -177,7 +177,6 @@ static void ua_event_handler(struct ua *ua, enum ua_event ev,
case UA_EVENT_CREATE:
len = re_snprintf(event_buf, sizeof event_buf, "create");
break;
case UA_EVENT_REGISTERING:
case UA_EVENT_UNREGISTERING:
case UA_EVENT_REGISTER_OK:
case UA_EVENT_FALLBACK_OK:

View File

@ -567,9 +567,6 @@ class BaresipService: Service() {
for (account_index in uas.indices) {
if (uas[account_index].account.aor == aor) {
when (ev[0]) {
"registering" -> {
return
}
"registered" -> {
ua.status = if (Api.account_regint(ua.account.accp) == 0)
R.drawable.dot_white