Close #384 - reset locations.yml on error
This commit is contained in:
parent
56533c6259
commit
1bf126d4f8
@ -35,9 +35,11 @@ public class YamlReconnectHandler implements ReconnectHandler
|
|||||||
{
|
{
|
||||||
data = yaml.loadAs( rd, Map.class );
|
data = yaml.loadAs( rd, Map.class );
|
||||||
}
|
}
|
||||||
} catch ( IOException ex )
|
} catch ( Exception ex )
|
||||||
{
|
{
|
||||||
ProxyServer.getInstance().getLogger().log( Level.WARNING, "Could not load reconnect locations", 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 )
|
if ( data == null )
|
||||||
|
Loading…
Reference in New Issue
Block a user