Fix blocked call at incoming state whereas other peer is connected.

cusax-fix
Sebastien Vincent 16 years ago
parent 61ff5e11c4
commit 901951d1f6

@ -86,14 +86,6 @@ public RTPConnectorInputStream(DatagramSocket socket)
{
this.socket = socket;
try
{
this.socket.setReceiveBufferSize(65535);
}
catch(IOException e)
{
}
closed = false;
receiverThread = new Thread(this);
receiverThread.start();
@ -253,6 +245,15 @@ public int read(byte[] inBuffer, int offset, int length)
*/
public void run()
{
try
{
socket.setReceiveBufferSize(65535);
}
catch(Throwable t)
{
System.out.println("plop " + t);
}
while (!closed)
{
DatagramPacket p = new DatagramPacket(

Loading…
Cancel
Save