mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2025-01-14 20:21:21 +01:00
Remove unnecessary synchronization from another spot
This commit is contained in:
parent
3f126f99c8
commit
2f5a429fb5
@ -148,10 +148,8 @@ public abstract class AbstractDiscordSRV<C extends MainConfig, CC extends Connec
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setStatus(Status status) {
|
public void setStatus(Status status) {
|
||||||
synchronized (this.status) {
|
|
||||||
this.status.set(status);
|
this.status.set(status);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
protected CompletableFuture<Void> invoke(CheckedRunnable runnable, String message, boolean enable) {
|
protected CompletableFuture<Void> invoke(CheckedRunnable runnable, String message, boolean enable) {
|
||||||
return CompletableFuture.runAsync(() -> {
|
return CompletableFuture.runAsync(() -> {
|
||||||
|
Loading…
Reference in New Issue
Block a user