Hack to make registration without prior unregistration

It needs to be investigated why this is done an why it does not work.
This commit is contained in:
Andreas Eversberg 2024-05-07 15:18:12 +02:00
parent 093edc657c
commit ff3c350049
1 changed files with 6 additions and 4 deletions

View File

@ -2366,10 +2366,12 @@ static int ami_register(struct mansession *s, const struct message *m)
/* We need to serialize the unregister and register so they need
* to be queued as separate tasks.
*/
if (queue_unregister(state)) {
astman_send_ack(s, m, "Failed to queue unregistration");
} else if (queue_register(state)) {
astman_send_ack(s, m, "Failed to queue unregistration");
#warning hacking
if (queue_register(state)) {
// if (queue_unregister(state)) {
// astman_send_ack(s, m, "Failed to queue unregistration");
// } else if (queue_register(state)) {
astman_send_ack(s, m, "Failed to queue registration");
} else {
astman_send_ack(s, m, "Reregistration sent");
}