From 357ad0d71353b8c9f106b112507136b7d67dbce5 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Tue, 23 Jul 2024 19:11:06 +0100 Subject: [PATCH] FIXUP server-actor handler receive valid server config --- .../server-actor/src/handlers/receive_valid_server_config.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/server-actor/src/handlers/receive_valid_server_config.rs b/crates/server-actor/src/handlers/receive_valid_server_config.rs index 6cc8cc1..3d48911 100644 --- a/crates/server-actor/src/handlers/receive_valid_server_config.rs +++ b/crates/server-actor/src/handlers/receive_valid_server_config.rs @@ -15,8 +15,9 @@ impl Handler 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