From 193e21e69d5afd1673022a961b14fb238e01f5a1 Mon Sep 17 00:00:00 2001 From: Mikhail Lopatkin Date: Fri, 21 Oct 2011 16:27:52 +0900 Subject: [PATCH] Fixed #68 - disabled ps list updating when the data source is closed --- .../mlopatkin/android/liblogcat/ddmlib/AdbDataSource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/bitbucket/mlopatkin/android/liblogcat/ddmlib/AdbDataSource.java b/src/org/bitbucket/mlopatkin/android/liblogcat/ddmlib/AdbDataSource.java index d6b7467d..83c9efc7 100644 --- a/src/org/bitbucket/mlopatkin/android/liblogcat/ddmlib/AdbDataSource.java +++ b/src/org/bitbucket/mlopatkin/android/liblogcat/ddmlib/AdbDataSource.java @@ -271,7 +271,7 @@ public Map getMap() { volatile private Future result; private synchronized void scheduleUpdate() { - if (result == null || result.isDone()) { + if (!backgroundUpdater.isShutdown() && (result == null || result.isDone())) { ShellInputStream in = new ShellInputStream(); BackgroundUpdateTask updateTask = new BackgroundUpdateTask(in); AdbShellCommand command = new AdbShellCommand(PS_COMMAND_LINE, in);