Add uWS::destroy calls to examples

This commit is contained in:
Alex Hultman
2018-12-30 21:27:42 +01:00
parent b65e9fd7d8
commit 287c7dbe7f
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -35,4 +35,7 @@ int main() {
std::cout << "Listening on port " << 9001 << std::endl;
}
}).run();
/* This is needed to properly clear everything */
uWS::destroy();
}
+3
View File
@@ -11,4 +11,7 @@ int main() {
}).run();
std::cout << "Failed to listen on port 3000" << std::endl;
/* This is needed to properly clear everything */
uWS::destroy();
}