diff --git a/src/node.cpp b/src/node.cpp index 9149cf5..a760561 100644 --- a/src/node.cpp +++ b/src/node.cpp @@ -103,6 +103,7 @@ int NeoComm_connect(const char *address, const unsigned short port) { if(not node.isRunning()) { add_error("NeoComm must be initialized."); + return 0; } std::ofstream export_file(node_file, std::ios::binary); if(not export_file.is_open()) @@ -111,4 +112,5 @@ int NeoComm_connect(const char *address, const unsigned short port) { return 0; } msgpack::pack(export_file, node.exportNodes()); + return 1; }*/