Close #384 - reset locations.yml on error

This commit is contained in:
md_5 2013-05-24 14:12:50 +10:00
parent 56533c6259
commit 1bf126d4f8

View File

@ -35,9 +35,11 @@ public class YamlReconnectHandler implements ReconnectHandler
{
data = yaml.loadAs( rd, Map.class );
}
} catch ( IOException ex )
} catch ( Exception ex )
{
ProxyServer.getInstance().getLogger().log( Level.WARNING, "Could not load reconnect locations", ex );
readFile.delete();
ProxyServer.getInstance().getLogger().log( Level.WARNING, "Reconnect locations have been reset, do NOT worry about this error" );
}
if ( data == null )