1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2025-04-10 20:04:05 +00:00

chore: Clone the ws codec in actix-web-actors

This commit is contained in:
Maciej Hirsz 2019-11-05 21:18:13 +01:00
parent 3cc8490c82
commit 4e534a158b

View file

@ -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)
}