Wait for GameClient closeNow packet to be sent.
This commit is contained in:
parent
4bd9210c69
commit
7a8a4f12d1
@ -104,8 +104,21 @@ public class GameClient extends NetClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void close(ServerPacket packet)
|
public void close(ServerPacket packet)
|
||||||
|
{
|
||||||
|
if (packet != null)
|
||||||
{
|
{
|
||||||
sendPacket(packet);
|
sendPacket(packet);
|
||||||
|
|
||||||
|
// Wait for packet to be sent.
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
catch (InterruptedException e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
closeNow();
|
closeNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,8 +104,21 @@ public class GameClient extends NetClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void close(ServerPacket packet)
|
public void close(ServerPacket packet)
|
||||||
|
{
|
||||||
|
if (packet != null)
|
||||||
{
|
{
|
||||||
sendPacket(packet);
|
sendPacket(packet);
|
||||||
|
|
||||||
|
// Wait for packet to be sent.
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
catch (InterruptedException e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
closeNow();
|
closeNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,8 +104,21 @@ public class GameClient extends NetClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void close(ServerPacket packet)
|
public void close(ServerPacket packet)
|
||||||
|
{
|
||||||
|
if (packet != null)
|
||||||
{
|
{
|
||||||
sendPacket(packet);
|
sendPacket(packet);
|
||||||
|
|
||||||
|
// Wait for packet to be sent.
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
catch (InterruptedException e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
closeNow();
|
closeNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,8 +104,21 @@ public class GameClient extends NetClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void close(ServerPacket packet)
|
public void close(ServerPacket packet)
|
||||||
|
{
|
||||||
|
if (packet != null)
|
||||||
{
|
{
|
||||||
sendPacket(packet);
|
sendPacket(packet);
|
||||||
|
|
||||||
|
// Wait for packet to be sent.
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
catch (InterruptedException e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
closeNow();
|
closeNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,8 +104,21 @@ public class GameClient extends NetClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void close(ServerPacket packet)
|
public void close(ServerPacket packet)
|
||||||
|
{
|
||||||
|
if (packet != null)
|
||||||
{
|
{
|
||||||
sendPacket(packet);
|
sendPacket(packet);
|
||||||
|
|
||||||
|
// Wait for packet to be sent.
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
catch (InterruptedException e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
closeNow();
|
closeNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,8 +104,21 @@ public class GameClient extends NetClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void close(ServerPacket packet)
|
public void close(ServerPacket packet)
|
||||||
|
{
|
||||||
|
if (packet != null)
|
||||||
{
|
{
|
||||||
sendPacket(packet);
|
sendPacket(packet);
|
||||||
|
|
||||||
|
// Wait for packet to be sent.
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
catch (InterruptedException e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
closeNow();
|
closeNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,8 +104,21 @@ public class GameClient extends NetClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void close(ServerPacket packet)
|
public void close(ServerPacket packet)
|
||||||
|
{
|
||||||
|
if (packet != null)
|
||||||
{
|
{
|
||||||
sendPacket(packet);
|
sendPacket(packet);
|
||||||
|
|
||||||
|
// Wait for packet to be sent.
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
catch (InterruptedException e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
closeNow();
|
closeNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,8 +104,21 @@ public class GameClient extends NetClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void close(ServerPacket packet)
|
public void close(ServerPacket packet)
|
||||||
|
{
|
||||||
|
if (packet != null)
|
||||||
{
|
{
|
||||||
sendPacket(packet);
|
sendPacket(packet);
|
||||||
|
|
||||||
|
// Wait for packet to be sent.
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
catch (InterruptedException e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
closeNow();
|
closeNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,8 +104,21 @@ public class GameClient extends NetClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void close(ServerPacket packet)
|
public void close(ServerPacket packet)
|
||||||
|
{
|
||||||
|
if (packet != null)
|
||||||
{
|
{
|
||||||
sendPacket(packet);
|
sendPacket(packet);
|
||||||
|
|
||||||
|
// Wait for packet to be sent.
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
catch (InterruptedException e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
closeNow();
|
closeNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,8 +104,21 @@ public class GameClient extends NetClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void close(ServerPacket packet)
|
public void close(ServerPacket packet)
|
||||||
|
{
|
||||||
|
if (packet != null)
|
||||||
{
|
{
|
||||||
sendPacket(packet);
|
sendPacket(packet);
|
||||||
|
|
||||||
|
// Wait for packet to be sent.
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
catch (InterruptedException e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
closeNow();
|
closeNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,8 +104,21 @@ public class GameClient extends NetClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void close(ServerPacket packet)
|
public void close(ServerPacket packet)
|
||||||
|
{
|
||||||
|
if (packet != null)
|
||||||
{
|
{
|
||||||
sendPacket(packet);
|
sendPacket(packet);
|
||||||
|
|
||||||
|
// Wait for packet to be sent.
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
catch (InterruptedException e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
closeNow();
|
closeNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,8 +104,21 @@ public class GameClient extends NetClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void close(ServerPacket packet)
|
public void close(ServerPacket packet)
|
||||||
|
{
|
||||||
|
if (packet != null)
|
||||||
{
|
{
|
||||||
sendPacket(packet);
|
sendPacket(packet);
|
||||||
|
|
||||||
|
// Wait for packet to be sent.
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
catch (InterruptedException e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
closeNow();
|
closeNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -108,8 +108,21 @@ public class GameClient extends NetClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void close(ServerPacket packet)
|
public void close(ServerPacket packet)
|
||||||
|
{
|
||||||
|
if (packet != null)
|
||||||
{
|
{
|
||||||
sendPacket(packet);
|
sendPacket(packet);
|
||||||
|
|
||||||
|
// Wait for packet to be sent.
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
catch (InterruptedException e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
closeNow();
|
closeNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -96,8 +96,21 @@ public class GameClient extends NetClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void close(ServerPacket packet)
|
public void close(ServerPacket packet)
|
||||||
|
{
|
||||||
|
if (packet != null)
|
||||||
{
|
{
|
||||||
sendPacket(packet);
|
sendPacket(packet);
|
||||||
|
|
||||||
|
// Wait for packet to be sent.
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
catch (InterruptedException e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
closeNow();
|
closeNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -92,8 +92,21 @@ public class GameClient extends NetClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void close(ServerPacket packet)
|
public void close(ServerPacket packet)
|
||||||
|
{
|
||||||
|
if (packet != null)
|
||||||
{
|
{
|
||||||
sendPacket(packet);
|
sendPacket(packet);
|
||||||
|
|
||||||
|
// Wait for packet to be sent.
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
catch (InterruptedException e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
closeNow();
|
closeNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -92,8 +92,21 @@ public class GameClient extends NetClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void close(ServerPacket packet)
|
public void close(ServerPacket packet)
|
||||||
|
{
|
||||||
|
if (packet != null)
|
||||||
{
|
{
|
||||||
sendPacket(packet);
|
sendPacket(packet);
|
||||||
|
|
||||||
|
// Wait for packet to be sent.
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
catch (InterruptedException e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
closeNow();
|
closeNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -95,8 +95,21 @@ public class GameClient extends NetClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void close(ServerPacket packet)
|
public void close(ServerPacket packet)
|
||||||
|
{
|
||||||
|
if (packet != null)
|
||||||
{
|
{
|
||||||
sendPacket(packet);
|
sendPacket(packet);
|
||||||
|
|
||||||
|
// Wait for packet to be sent.
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
catch (InterruptedException e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
closeNow();
|
closeNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,8 +104,21 @@ public class GameClient extends NetClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void close(ServerPacket packet)
|
public void close(ServerPacket packet)
|
||||||
|
{
|
||||||
|
if (packet != null)
|
||||||
{
|
{
|
||||||
sendPacket(packet);
|
sendPacket(packet);
|
||||||
|
|
||||||
|
// Wait for packet to be sent.
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
catch (InterruptedException e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
closeNow();
|
closeNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,8 +104,21 @@ public class GameClient extends NetClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void close(ServerPacket packet)
|
public void close(ServerPacket packet)
|
||||||
|
{
|
||||||
|
if (packet != null)
|
||||||
{
|
{
|
||||||
sendPacket(packet);
|
sendPacket(packet);
|
||||||
|
|
||||||
|
// Wait for packet to be sent.
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
catch (InterruptedException e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
closeNow();
|
closeNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,8 +104,21 @@ public class GameClient extends NetClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void close(ServerPacket packet)
|
public void close(ServerPacket packet)
|
||||||
|
{
|
||||||
|
if (packet != null)
|
||||||
{
|
{
|
||||||
sendPacket(packet);
|
sendPacket(packet);
|
||||||
|
|
||||||
|
// Wait for packet to be sent.
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
catch (InterruptedException e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
closeNow();
|
closeNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,8 +104,21 @@ public class GameClient extends NetClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void close(ServerPacket packet)
|
public void close(ServerPacket packet)
|
||||||
|
{
|
||||||
|
if (packet != null)
|
||||||
{
|
{
|
||||||
sendPacket(packet);
|
sendPacket(packet);
|
||||||
|
|
||||||
|
// Wait for packet to be sent.
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
catch (InterruptedException e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
closeNow();
|
closeNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,8 +104,21 @@ public class GameClient extends NetClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void close(ServerPacket packet)
|
public void close(ServerPacket packet)
|
||||||
|
{
|
||||||
|
if (packet != null)
|
||||||
{
|
{
|
||||||
sendPacket(packet);
|
sendPacket(packet);
|
||||||
|
|
||||||
|
// Wait for packet to be sent.
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
catch (InterruptedException e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
closeNow();
|
closeNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,8 +104,21 @@ public class GameClient extends NetClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void close(ServerPacket packet)
|
public void close(ServerPacket packet)
|
||||||
|
{
|
||||||
|
if (packet != null)
|
||||||
{
|
{
|
||||||
sendPacket(packet);
|
sendPacket(packet);
|
||||||
|
|
||||||
|
// Wait for packet to be sent.
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
catch (InterruptedException e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
closeNow();
|
closeNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,8 +104,21 @@ public class GameClient extends NetClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void close(ServerPacket packet)
|
public void close(ServerPacket packet)
|
||||||
|
{
|
||||||
|
if (packet != null)
|
||||||
{
|
{
|
||||||
sendPacket(packet);
|
sendPacket(packet);
|
||||||
|
|
||||||
|
// Wait for packet to be sent.
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
catch (InterruptedException e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
closeNow();
|
closeNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,8 +104,21 @@ public class GameClient extends NetClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void close(ServerPacket packet)
|
public void close(ServerPacket packet)
|
||||||
|
{
|
||||||
|
if (packet != null)
|
||||||
{
|
{
|
||||||
sendPacket(packet);
|
sendPacket(packet);
|
||||||
|
|
||||||
|
// Wait for packet to be sent.
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
catch (InterruptedException e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
closeNow();
|
closeNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,8 +104,21 @@ public class GameClient extends NetClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void close(ServerPacket packet)
|
public void close(ServerPacket packet)
|
||||||
|
{
|
||||||
|
if (packet != null)
|
||||||
{
|
{
|
||||||
sendPacket(packet);
|
sendPacket(packet);
|
||||||
|
|
||||||
|
// Wait for packet to be sent.
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
catch (InterruptedException e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
closeNow();
|
closeNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,8 +104,21 @@ public class GameClient extends NetClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void close(ServerPacket packet)
|
public void close(ServerPacket packet)
|
||||||
|
{
|
||||||
|
if (packet != null)
|
||||||
{
|
{
|
||||||
sendPacket(packet);
|
sendPacket(packet);
|
||||||
|
|
||||||
|
// Wait for packet to be sent.
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
catch (InterruptedException e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
closeNow();
|
closeNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,8 +104,21 @@ public class GameClient extends NetClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void close(ServerPacket packet)
|
public void close(ServerPacket packet)
|
||||||
|
{
|
||||||
|
if (packet != null)
|
||||||
{
|
{
|
||||||
sendPacket(packet);
|
sendPacket(packet);
|
||||||
|
|
||||||
|
// Wait for packet to be sent.
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
catch (InterruptedException e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
closeNow();
|
closeNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,8 +104,21 @@ public class GameClient extends NetClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void close(ServerPacket packet)
|
public void close(ServerPacket packet)
|
||||||
|
{
|
||||||
|
if (packet != null)
|
||||||
{
|
{
|
||||||
sendPacket(packet);
|
sendPacket(packet);
|
||||||
|
|
||||||
|
// Wait for packet to be sent.
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
catch (InterruptedException e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
closeNow();
|
closeNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,8 +104,21 @@ public class GameClient extends NetClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void close(ServerPacket packet)
|
public void close(ServerPacket packet)
|
||||||
|
{
|
||||||
|
if (packet != null)
|
||||||
{
|
{
|
||||||
sendPacket(packet);
|
sendPacket(packet);
|
||||||
|
|
||||||
|
// Wait for packet to be sent.
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
catch (InterruptedException e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
closeNow();
|
closeNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,8 +104,21 @@ public class GameClient extends NetClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void close(ServerPacket packet)
|
public void close(ServerPacket packet)
|
||||||
|
{
|
||||||
|
if (packet != null)
|
||||||
{
|
{
|
||||||
sendPacket(packet);
|
sendPacket(packet);
|
||||||
|
|
||||||
|
// Wait for packet to be sent.
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
catch (InterruptedException e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
closeNow();
|
closeNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user