Fix #872 - use default server if forced host not found, OR force default is set.

This commit is contained in:
md_5 2014-03-10 11:23:26 +11:00
parent 52fbceec54
commit 1fb7a3bf1d

View File

@ -35,7 +35,7 @@ public abstract class AbstractReconnectHandler implements ReconnectHandler
String forced = con.getListener().getForcedHosts().get( con.getVirtualHost().getHostString() );
if ( forced == null && con.getListener().isForceDefault() )
if ( forced == null || con.getListener().isForceDefault() )
{
forced = con.getListener().getDefaultServer();
}