mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-26 18:35:32 +02:00
make background thread a daemon
This commit is contained in:
parent
69383cb9c0
commit
2020cc540c
1 changed files with 4 additions and 2 deletions
|
@ -587,7 +587,7 @@ class TelnetOption implements TelnetCodes
|
||||||
// thread, and calls to write() can block, but blocking the display thread
|
// thread, and calls to write() can block, but blocking the display thread
|
||||||
// is _bad_ (it hangs the GUI).
|
// is _bad_ (it hangs the GUI).
|
||||||
|
|
||||||
new Thread() {
|
Thread t=new Thread() {
|
||||||
public void run() {
|
public void run() {
|
||||||
try {
|
try {
|
||||||
outputStream.write(NAWSDataFinal);
|
outputStream.write(NAWSDataFinal);
|
||||||
|
@ -596,7 +596,9 @@ class TelnetOption implements TelnetCodes
|
||||||
Logger.logException(ex);
|
Logger.logException(ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}.start();
|
};
|
||||||
|
t.setDaemon(true);
|
||||||
|
t.start();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Add table
Reference in a new issue