FIXUP server-actor handler receive valid server config

This commit is contained in:
Paul Campbell 2024-07-23 19:11:06 +01:00
parent 78984f25be
commit e13a89b4a0

View file

@ -15,8 +15,9 @@ impl Handler<ReceiveValidServerConfig> for Server {
socket_address,
server_storage,
} = msg.unwrap();
if let Some(webhook) = self.webhook.take() {
webhook.do_send(ShutdownWebhook);
// shutdown any existing webhook actor
if let Some(webhook_actor_addr) = self.webhook_actor_addr.take() {
webhook_actor_addr.do_send(ShutdownWebhook);
}
self.generation.inc();
// Webhook Server