mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-23 23:20:42 -04:00
ignore error sending message after shut down
This commit is contained in:
parent
342c212ba8
commit
e2e2963b99
2 changed files with 14 additions and 15 deletions
|
@ -58,7 +58,7 @@ public class UserThread {
|
|||
}
|
||||
|
||||
public static void execute(Runnable command) {
|
||||
UserThread.executor.execute(() -> {
|
||||
executor.execute(() -> {
|
||||
Thread.currentThread().setName(USER_THREAD_NAME);
|
||||
command.run();
|
||||
});
|
||||
|
@ -79,7 +79,8 @@ public class UserThread {
|
|||
}
|
||||
}
|
||||
|
||||
public static boolean isUserThread(Thread thread) {
|
||||
// TODO: better way to determine if on UserThread, since this is not reliable
|
||||
private static boolean isUserThread(Thread thread) {
|
||||
return USER_THREAD_NAME.equals(thread.getName());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue