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

Fix potential segfault in remote spawn example

parent c7f1f0f6
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
// - remote_spawn -n localhost -p 4242 // - remote_spawn -n localhost -p 4242
// Manual refs: 33-39, 99-101,106,110 (ConfiguringActorApplications) // Manual refs: 33-39, 99-101,106,110 (ConfiguringActorApplications)
// 124-142 (RemoteSpawn) // 125-143 (RemoteSpawn)
#include <array> #include <array>
#include <vector> #include <vector>
...@@ -114,6 +114,7 @@ void server(actor_system& system, const config& cfg) { ...@@ -114,6 +114,7 @@ void server(actor_system& system, const config& cfg) {
if (!res) { if (!res) {
std::cerr << "*** cannot open port: " std::cerr << "*** cannot open port: "
<< system.render(res.error()) << std::endl; << system.render(res.error()) << std::endl;
return;
} }
std::cout << "*** running on port: " std::cout << "*** running on port: "
<< *res << std::endl << *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