Added more return statements to commented out code.

This commit is contained in:
Nicolás Ortega Froysa 2017-09-29 10:38:30 +02:00
parent ca0a691020
commit 5c3e6889de
No known key found for this signature in database
GPG Key ID: FEC70E3BAE2E69BF

View File

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