This commit is contained in:
Andrea Cavalli 2022-01-15 19:48:00 +01:00
parent 0a896dce38
commit 89cf8007ad

View File

@ -61,7 +61,7 @@ public class DefaultBotSession implements BotSession {
@Override
public void start() {
if (running.compareAndSet(false, true)) {
if (!running.compareAndSet(false, true)) {
throw new IllegalStateException("Session already running");
}