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-02 11:01:14 +02:00
parent 0512969d9c
commit 82c6c3a9f8
1 changed files with 6 additions and 4 deletions

View File

@ -2396,10 +2396,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");
}