DrivenEngine channels are now shared_ptr
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
class Client {
|
||||
public:
|
||||
int64_t actor_id_;
|
||||
UniqueChannel channel_;
|
||||
SharedChannel channel_;
|
||||
UniqueWorld sync_;
|
||||
};
|
||||
using UniqueClient = std::unique_ptr<Client>;
|
||||
@@ -151,7 +151,7 @@ public:
|
||||
|
||||
// Check for new incoming channels, set up client structures.
|
||||
while (true) {
|
||||
UniqueChannel chan = new_incoming_channel();
|
||||
SharedChannel chan = new_incoming_channel();
|
||||
if (chan == nullptr) break;
|
||||
Client *client = new Client;
|
||||
client->actor_id_ = master_->create_login_actor();
|
||||
|
||||
Reference in New Issue
Block a user