Added if for compatibility with pre-0.4's TcpServer.