- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: implement a player-specific queue for clipboard IO tasks #2267
Conversation
dordsor21
commented
Jun 4, 2023
- Addresses //copy - java.nio.channels.OverlappingFileLockExcption: null #2222 (hopefully fixes)
- Addresses #2222 (hopefully fixes)
Hey @skrevt, do you mind testing with the PR build whether this resolves your issue or not? |
The clipboard issue will be intermittent and isn't particularly easy to replicate, so it's more an over-time test kinda thing |
...dedit-core/src/main/java/com/fastasyncworldedit/core/util/task/KeyQueuedExecutorService.java
Outdated
Show resolved
Hide resolved
doc.close(); // Ensure closed before deletion | ||
doc.getFile().delete(); | ||
}); | ||
} | ||
} | ||
} else if (Settings.settings().CLIPBOARD.DELETE_ON_LOGOUT || Settings.settings().CLIPBOARD.USE_DISK) { | ||
WorldEdit.getInstance().getExecutorService().submit(() -> session.setClipboard(null)); | ||
} else if (Settings.settings().CLIPBOARD.USE_DISK) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this is fine for now as it was like that before, but actually the clipboard can be set by plugins to arbitrary implementations, so relying on the settings isn't exactly correct.
...dedit-core/src/main/java/com/fastasyncworldedit/core/util/task/KeyQueuedExecutorService.java
Outdated
Show resolved
Hide resolved
...dedit-core/src/main/java/com/fastasyncworldedit/core/util/task/KeyQueuedExecutorService.java
Outdated
Show resolved
Hide resolved
...dedit-core/src/main/java/com/fastasyncworldedit/core/util/task/KeyQueuedExecutorService.java
Outdated
Show resolved
Hide resolved
worldedit-core/src/main/java/com/fastasyncworldedit/core/Fawe.java
Outdated
Show resolved
Hide resolved
...dedit-core/src/main/java/com/fastasyncworldedit/core/util/task/KeyQueuedExecutorService.java
Outdated
Show resolved
Hide resolved
...dedit-core/src/main/java/com/fastasyncworldedit/core/util/task/KeyQueuedExecutorService.java
Outdated
Show resolved
Hide resolved
99290ea
to
999895c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's see how it turns out!