Author: roeie
Date: 2008-02-12 08:55:28 -0500 (Tue, 12 Feb 2008)
New Revision: 95498
Modified:
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Http/HttpServerChannel.cs
Log:
Initialize Channel uri in all cases
Modified:
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Http/HttpServerChannel.cs
===================================================================
---
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Http/HttpServerChannel.cs
2008-02-12 13:55:27 UTC (rev 95497)
+++
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Http/HttpServerChannel.cs
2008-02-12 13:55:28 UTC (rev 95498)
@@ -212,12 +212,12 @@
_tcpListener = new TcpListener (_bindToAddr, _port);
_tcpListener.Start();
- if (_port == 0) {
- _port =
((IPEndPoint)_tcpListener.LocalEndpoint).Port;
- String[] uris = { this.GetChannelUri() };
- _channelData.ChannelUris = uris;
- }
-
+ if (_port == 0)
+ _port =
((IPEndPoint)_tcpListener.LocalEndpoint).Port;
+
+ String[] uris = { this.GetChannelUri() };
+ _channelData.ChannelUris = uris;
+
if(_listenerThread == null)
{
ThreadStart t = new ThreadStart(this.Listen);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches