mirror of
https://github.com/modelec/connectors.git
synced 2026-01-18 16:57:21 +01:00
do not need catch
This commit is contained in:
16
main.cpp
16
main.cpp
@@ -25,19 +25,13 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
MyTCPClient client(host, port);
|
||||
|
||||
try{
|
||||
client.start();
|
||||
client.start();
|
||||
|
||||
while (!client.shouldStop() && !shouldStop) {
|
||||
usleep(100'000);
|
||||
}
|
||||
while (!client.shouldStop() && !shouldStop) {
|
||||
usleep(100'000);
|
||||
}
|
||||
|
||||
client.stop();
|
||||
}
|
||||
catch (const std::exception &e) {
|
||||
std::cerr << e.what() << std::endl;
|
||||
return 1;
|
||||
}
|
||||
client.stop();
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user