fixing build.

When an authorization request is received wait for a moment (as a normal user do). This way we give time to the other party and the server to finish their tasks.
cusax-fix
Damian Minkov 20 years ago
parent 395ee377e6
commit 5f89720b7e

@ -1231,7 +1231,16 @@ public SnacCommand genSnacCommand(SnacPacket packet)
{
RequestAuthCmd cmd = new RequestAuthCmd(packet);
requestReasonStr = cmd.reason;
System.out.println("sending authorization " + ACCEPT);
// will wait as a normal user
Object lock = new Object();
synchronized(lock){
try{
lock.wait(2000);
}
catch (Exception ex){}
}
logger.trace("sending authorization " + ACCEPT);
conn.sendSnac(
new AuthReplyCmd(

Loading…
Cancel
Save