Commit 46b9b1ed authored by Dominik Charousset's avatar Dominik Charousset

Fix potential segfault in remote spawn example

parent c7f1f0f6
......@@ -8,7 +8,7 @@
// - remote_spawn -n localhost -p 4242
// Manual refs: 33-39, 99-101,106,110 (ConfiguringActorApplications)
// 124-142 (RemoteSpawn)
// 125-143 (RemoteSpawn)
#include <array>
#include <vector>
......@@ -114,6 +114,7 @@ void server(actor_system& system, const config& cfg) {
if (!res) {
std::cerr << "*** cannot open port: "
<< system.render(res.error()) << std::endl;
return;
}
std::cout << "*** running on port: "
<< *res << std::endl
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment