add exit method
This commit is contained in:
parent
bc8408c1aa
commit
c108ae97b7
1 changed files with 11 additions and 9 deletions
|
|
@ -145,9 +145,7 @@ public class EncodingStorage extends HashMap<File, EncodingStorage.Info> {
|
|||
encoding(encoder, fly, info.info, new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
encoder.close();
|
||||
encoder = null;
|
||||
startEncoding();
|
||||
restart();
|
||||
}
|
||||
});
|
||||
return;
|
||||
|
|
@ -214,9 +212,7 @@ public class EncodingStorage extends HashMap<File, EncodingStorage.Info> {
|
|||
encoding(encoder, fly, info, new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
encoder.close();
|
||||
encoder = null;
|
||||
Post(EXIT, null);
|
||||
exit();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
@ -228,13 +224,19 @@ public class EncodingStorage extends HashMap<File, EncodingStorage.Info> {
|
|||
encoding(encoder, fly, info, new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
encoder.close();
|
||||
encoder = null;
|
||||
Post(EXIT, null);
|
||||
exit();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void exit() {
|
||||
if (encoder != null) {
|
||||
encoder.close();
|
||||
encoder = null;
|
||||
}
|
||||
Post(EXIT, null);
|
||||
}
|
||||
|
||||
public void restart() {
|
||||
if (encoder != null) {
|
||||
encoder.close();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue