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
1 changed files with 1 additions and 1 deletions

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