-
Type: Improvement
-
Status: Resolved
-
Priority: Detail
-
Resolution: Fixed
-
Affects Version/s: Android_1.0
-
Fix Version/s: Android 2.0
-
Component/s: Android Automation Client
Hi,
I'm just doing a quick test around your Android automation client and I saw that when I change the destination server dynamically, you create a new AndroidAutomationClient. However, the AndroidHttpClient the former AndroidAutomationClient holds is not closed, so an exception is thrown (java.lang.IllegalStateException: AndroidHttpClient created and never closed). I have added locally this stupid thing so it's closed when the AndroidAutomationClient is disposed:
@Override protected void finalize() { ((AndroidHttpClient) this.http).close(); }