Archived
0

add options save cookie

This commit is contained in:
iMoHax
2015-08-07 15:31:53 +03:00
parent 0a4b301fdb
commit 3ed718d4d6

View File

@@ -149,7 +149,13 @@ public class EDSession {
}
public void close() throws IOException {
writeCookieStore(cookieStore);
close(true);
}
public void close(boolean saveCookie) throws IOException {
if (saveCookie){
writeCookieStore(cookieStore);
}
httpClient.close();
}