mirror of
https://github.com/kierankihn/uno-game.git
synced 2025-12-27 02:13:18 +08:00
fix(network): reattempt read in NetworkServer after message handling
- Added a call to `read()` after successfully processing an incoming message in `NetworkServer`.
This commit is contained in:
@@ -50,6 +50,7 @@ namespace UNO::NETWORK {
|
||||
if (!ec) {
|
||||
std::string message = {buffer->begin(), buffer->end()};
|
||||
this->callback_(this->player_id_, message);
|
||||
read();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user