Fix infinite recursion in TCPConnection.(local/remote)Address properties.

This commit is contained in:
Sönke Ludwig 2017-01-26 13:58:14 +01:00
parent 373f82c16b
commit 5249c1c4c6
No known key found for this signature in database
GPG key ID: D95E8DB493EE314C

View file

@ -443,8 +443,8 @@ struct TCPConnection {
@property void readTimeout(Duration duration) { m_context.readTimeout = duration; }
@property Duration readTimeout() const { return m_context.readTimeout; }
@property string peerAddress() const { return m_context.remoteAddress.toString(); }
@property NetworkAddress localAddress() const { return localAddress; }
@property NetworkAddress remoteAddress() const { return remoteAddress; }
@property NetworkAddress localAddress() const { return m_context.localAddress; }
@property NetworkAddress remoteAddress() const { return m_context.remoteAddress; }
@property bool connected()
const {
if (m_socket == StreamSocketFD.invalid) return false;