Skip to content

Commit

Permalink
Close file descriptors config
Browse files Browse the repository at this point in the history
  • Loading branch information
limboemu committed Dec 2, 2020
1 parent 8051c43 commit e94b081
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ public class Config {
public static String notificationChannelID = "limbo";
public static String notificationChannelName = "limbo";
public static boolean showToast = false;
public static boolean closeFileDescriptors = true;


public static final String getCacheDir(){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,9 @@ public static void close_fds() {
}

public static int close_fd(int fd) {

if(!Config.closeFileDescriptors) {
return 0;
}
synchronized (fds) {
// Log.d(TAG, "Closing FD: " + fd);
if (FileUtils.fds.containsKey(fd)) {
Expand Down

0 comments on commit e94b081

Please sign in to comment.