Restore shutdown of connection manager
[zxing.git] / android / src / com / google / zxing / client / android / AndroidHttpClient.java
index d1e6895..eca83cf 100644 (file)
@@ -197,8 +197,12 @@ public final class AndroidHttpClient implements HttpClient {
     return responseStream;
   }
 
+  /**
+   * Release resources associated with this client.  You must call this,
+   * or significant resources (sockets and memory) may be leaked.
+   */
   public void close() {
-    // do nothing
+    getConnectionManager().shutdown();
   }
 
   public HttpParams getParams() {