Skip to content

Commit

Permalink
check whether connection is active in BukkitBridge
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeCrafter47 committed Oct 21, 2023
1 parent 3b101e7 commit e35f7e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ protected <T> void addActiveKey(DataKey<T> key) {
try {
synchronized (this) {
Server connection = getConnection();
if (connection != null) {
if (connection != null && connection.isConnected()) {
if (!requestedDataKeys.contains(key)) {
requestedDataKeys.add(key);
ByteArrayDataOutput data = ByteStreams.newDataOutput();
Expand Down

0 comments on commit e35f7e1

Please sign in to comment.