Clear the address cache entry when a connection fails

Should help solve the issues caused by mojang swapping the ip address of
the session server.
This commit is contained in:
Thinkofdeath 2015-07-26 23:30:39 +01:00 committed by md_5
parent 40c0618a3a
commit a0f2c42d38

View File

@ -86,6 +86,7 @@ public class HttpClient
future.channel().writeAndFlush( request ); future.channel().writeAndFlush( request );
} else } else
{ {
addressCache.invalidate( uri.getHost() );
callback.done( null, future.cause() ); callback.done( null, future.cause() );
} }
} }