Skip to content

Commit 31b5b18

Browse files
author
Seppo Takalo
committed
Stop on connection failure.
1 parent b21a44f commit 31b5b18

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ int main() {
2828
r = net->connect();
2929
if (r != 0) {
3030
printf("Error! net->connect() returned: %d\n", r);
31+
return r;
3132
}
3233

3334
// Show the network address

0 commit comments

Comments
 (0)