Closed Raraph84 closed 3 months ago
(just signed the commit)
i think the problem is that the server is not marked as obsolote as it should be
I would fix it by set obsolte to true if the server gets disconnected This way the internal use of obsolete is more consistent We also could remove any lines of code that set obsolote to true before disconnecting the server like this
user.getServer().setObsolete( true );
user.getServer().disconnect( "Quitting" );
And just call the setObsolote inside the disconnect method
Like that? I tested and it works
Yes thats exactly what was on my mind
i think the problem is that the server is not marked as obsolote as it should be
I would fix it by set obsolte to true if the server gets disconnected This way the internal use of obsolete is more consistent We also could remove any lines of code that set obsolote to true before disconnecting the server like this
user.getServer().setObsolete( true );
user.getServer().disconnect( "Quitting" );
And just call the setObsolote inside the disconnect method
Are you sure this fixes it? Looking at the code ServerConnection#disconnect is already accompanied by a setObsolete
i think the problem is that the server is not marked as obsolote as it should be I would fix it by set obsolte to true if the server gets disconnected This way the internal use of obsolete is more consistent We also could remove any lines of code that set obsolote to true before disconnecting the server like this
user.getServer().setObsolete( true );
user.getServer().disconnect( "Quitting" );
And just call the setObsolote inside the disconnect methodAre you sure this fixes it? Looking at the code ServerConnection#disconnect is already accompanied by a setObsolete
its about the
con.getServer().disconnect( "Quitting" ); call
in the Upstreambridge disconnected method
there we have not set obsolete to true
so it should fix it
Can this be merged then?
I should solve the https://github.com/SpigotMC/BungeeCord/issues/3711 issue