guard against npe

This commit is contained in:
Devon Carew 2016-01-19 12:15:11 -08:00
parent 677a80c16b
commit 077ee32ea5

View file

@ -105,7 +105,7 @@ class Adb {
});
socket.done.then((_) => controller.close());
},
onCancel: () => socket.destroy()
onCancel: () => socket?.destroy()
);
return controller.stream;