fix set interrupt
This commit is contained in:
parent
6b62aa309a
commit
de2d1f60a2
1 changed files with 2 additions and 0 deletions
|
|
@ -754,6 +754,7 @@ public class RecordingActivity extends AppCompatActivity {
|
|||
}
|
||||
|
||||
final Thread old = thread;
|
||||
final AtomicBoolean oldb = interrupt;
|
||||
|
||||
interrupt = new AtomicBoolean(false);
|
||||
|
||||
|
|
@ -761,6 +762,7 @@ public class RecordingActivity extends AppCompatActivity {
|
|||
@Override
|
||||
public void run() {
|
||||
if (old != null) {
|
||||
oldb.set(true);
|
||||
old.interrupt();
|
||||
try {
|
||||
old.join();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue