diff --git a/src/server/srv.rs b/src/server/srv.rs index 47309e708..0e8f64852 100644 --- a/src/server/srv.rs +++ b/src/server/srv.rs @@ -386,7 +386,8 @@ impl HttpServer, net::SocketAddr, H, // start http server actor let signals = self.subscribe_to_signals(); let addr: SyncAddress<_> = Actor::start(self); - signals.map(|signals| signals.send(signal::Subscribe(addr.subscriber()))); + signals.map(|signals| signals.send( + signal::Subscribe(addr.clone().into_subscriber()))); Ok(addr) } } @@ -431,7 +432,8 @@ impl HttpServer, net::SocketAddr, H, // start http server actor let signals = self.subscribe_to_signals(); let addr: SyncAddress<_> = Actor::start(self); - signals.map(|signals| signals.send(signal::Subscribe(addr.subscriber()))); + signals.map(|signals| signals.send( + signal::Subscribe(addr.clone().into_subscriber()))); Ok(addr) } }