mozilla/libadb.js — pull request #18 by brendandahl (2014-02-04 23:18:40+00:00)
Title: Fix connection problems when command line adb is already running.

Fixes #17

The pipes are left in a bad state after we tell command line adb to die. This is same problem I ran into when starting and stopping our library multiple times.

The nulled out handle will prevent crashes if the handle goes bad in the future and it is freed.