Permalink
Browse files

check wheter port is valid before checking args_valid

  • Loading branch information...
1 parent d58a248 commit 190b0b471753c09aca374c2b4ac5100cdfd04da8 @Neverlord Neverlord committed Sep 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 examples/group_server.cpp
@@ -44,11 +44,11 @@ int main(int argc, char** argv) {
return true;
}
);
- if (!args_valid) return 1;
if (port <= 1024) {
cout << "no port > 1024 given" << endl;
return 2;
}
+ if (!args_valid) return 1;
publish_local_groups_at(port);
cout << "type 'quit' to shutdown the server" << endl;
string line;

0 comments on commit 190b0b4

Please sign in to comment.