Fix incorrect return value in TCPConnection.leastSize()
This commit is contained in:
parent
eb82c2ad35
commit
13e6c2aa41
|
@ -535,7 +535,7 @@ struct TCPConnection {
|
||||||
return s >= ConnectionState.connected && s < ConnectionState.activeClose;
|
return s >= ConnectionState.connected && s < ConnectionState.activeClose;
|
||||||
}
|
}
|
||||||
@property bool empty() { return leastSize == 0; }
|
@property bool empty() { return leastSize == 0; }
|
||||||
@property ulong leastSize() { waitForData(); return m_context && m_context.readBuffer.length; }
|
@property ulong leastSize() { waitForData(); return m_context ? m_context.readBuffer.length : 0; }
|
||||||
@property bool dataAvailableForRead() { return waitForData(0.seconds); }
|
@property bool dataAvailableForRead() { return waitForData(0.seconds); }
|
||||||
|
|
||||||
void close()
|
void close()
|
||||||
|
|
Loading…
Reference in a new issue