Add uWS::destroy calls to examples
This commit is contained in:
@@ -35,4 +35,7 @@ int main() {
|
|||||||
std::cout << "Listening on port " << 9001 << std::endl;
|
std::cout << "Listening on port " << 9001 << std::endl;
|
||||||
}
|
}
|
||||||
}).run();
|
}).run();
|
||||||
|
|
||||||
|
/* This is needed to properly clear everything */
|
||||||
|
uWS::destroy();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,4 +11,7 @@ int main() {
|
|||||||
}).run();
|
}).run();
|
||||||
|
|
||||||
std::cout << "Failed to listen on port 3000" << std::endl;
|
std::cout << "Failed to listen on port 3000" << std::endl;
|
||||||
|
|
||||||
|
/* This is needed to properly clear everything */
|
||||||
|
uWS::destroy();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user