From 4e534a158b4d12e5028f4eee14e090724be18c3c Mon Sep 17 00:00:00 2001 From: Maciej Hirsz Date: Tue, 5 Nov 2019 21:18:13 +0100 Subject: [PATCH] chore: Clone the ws codec in actix-web-actors --- actix-web-actors/src/ws.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actix-web-actors/src/ws.rs b/actix-web-actors/src/ws.rs index e25a7e6e4..a99de1f56 100644 --- a/actix-web-actors/src/ws.rs +++ b/actix-web-actors/src/ws.rs @@ -288,7 +288,7 @@ where inner: ContextParts::new(mb.sender_producer()), messages: VecDeque::new(), }; - ctx.add_stream(WsStream::new(stream, codec)); + ctx.add_stream(WsStream::new(stream, codec.clone())); WebsocketContextFut::new(ctx, actor, mb, codec) }