Diff between 5a56558ffe9c6f7604d8704a184a89f38956b29e and c3560288faa3aa6e3a9172a0f0e1ed4e4cb98099

Changed Files

File Additions Deletions Status
android/android-tester.c +3 -1 modified

Full Patch

diff --git a/android/android-tester.c b/android/android-tester.c
index 09c76c9..d7e80fb 100644
--- a/android/android-tester.c
+++ b/android/android-tester.c
@@ -390,7 +390,9 @@ static void emulator(int pipe, int hci_index)
 
 failed:
 	close(pipe);
-	close(fd);
+
+	if (fd >= 0)
+		close(fd);
 }
 
 static void adapter_state_changed_cb(bt_state_t state)