From 5c3e6889de9826b71cbdbc6895f045da01056d34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Fri, 29 Sep 2017 10:38:30 +0200 Subject: [PATCH] Added more return statements to commented out code. --- src/node.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; }*/