Commit 392cd098 by Michael Koch Committed by Michael Koch

2004-11-22 Michael Koch <konqueror@gmx.de>

	* gnu/java/nio/SocketChannelImpl.java
	(read): Made check for blocking un-ambiguous.
	Removed wrong check for data array length.

From-SVN: r91028
parent 23ba09f0
2004-11-22 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/SocketChannelImpl.java
(read): Made check for blocking un-ambiguous.
Removed wrong check for data array length.
2004-11-21 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/SocketChannelImpl.java
......
......@@ -227,12 +227,9 @@ public final class SocketChannelImpl extends SocketChannel
int available = input.available();
int len = dst.capacity() - dst.position();
if (! isBlocking() && available == 0)
if ((! isBlocking()) && available == 0)
return 0;
if (len > available)
len = available;
if (dst.hasArray())
{
offset = dst.arrayOffset() + dst.position();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment