System.err.println("User is not registered.");
System.exit(1);
}
- int timeout = ns.getInt("timeout");
+ int timeout = 5;
+ if (ns.getInt("timeout") != null) {
+ timeout = ns.getInt("timeout");
+ }
boolean returnOnTimeout = true;
if (timeout < 0) {
returnOnTimeout = false;
- timeout = 5;
+ timeout = 3600;
}
try {
m.receiveMessages(timeout, returnOnTimeout, new ReceiveMessageHandler(m));