aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/src/github/daneren2005/subphonic/service/RESTMusicService.java
diff options
context:
space:
mode:
Diffstat (limited to 'subsonic-android/src/github/daneren2005/subphonic/service/RESTMusicService.java')
-rw-r--r--subsonic-android/src/github/daneren2005/subphonic/service/RESTMusicService.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/subsonic-android/src/github/daneren2005/subphonic/service/RESTMusicService.java b/subsonic-android/src/github/daneren2005/subphonic/service/RESTMusicService.java
index 7a7d1415..b9da4c1a 100644
--- a/subsonic-android/src/github/daneren2005/subphonic/service/RESTMusicService.java
+++ b/subsonic-android/src/github/daneren2005/subphonic/service/RESTMusicService.java
@@ -711,6 +711,9 @@ public class RESTMusicService implements MusicService {
String password = prefs.getString(Constants.PREFERENCES_KEY_PASSWORD + instance, null);
httpClient.getCredentialsProvider().setCredentials(new AuthScope(AuthScope.ANY_HOST, AuthScope.ANY_PORT),
new UsernamePasswordCredentials(username, password));
+
+ int networkTimeout = Integer.parseInt(prefs.getString(Constants.PREFERENCES_KEY_NETWORK_TIMEOUT, "10000"));
+ httpClient.getParams().setParameter("http.socket.timeout", networkTimeout);
try {
HttpResponse response = httpClient.execute(request, httpContext);