Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
master
tesshucom 6 years ago committed by Andrew DeMaria
parent 4cd9e9deac
commit 131713aaf4
No known key found for this signature in database
GPG Key ID: 0A3F5E91F8364EDF
  1. 3
      airsonic-main/pom.xml
  2. 6
      airsonic-main/src/main/java/org/airsonic/player/controller/StreamController.java

@ -332,6 +332,7 @@
<dependency> <dependency>
<groupId>org.assertj</groupId> <groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId> <artifactId>assertj-core</artifactId>
<scope>test</scope>
</dependency> </dependency>
<!-- UPNP / DLNA --> <!-- UPNP / DLNA -->
@ -539,7 +540,7 @@
<plugin> <plugin>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
<version>1.5.2.RELEASE</version> <version>1.5.8.RELEASE</version>
<configuration> <configuration>
<mainClass>org.airsonic.player.Application</mainClass> <mainClass>org.airsonic.player.Application</mainClass>
<layout>WAR</layout> <layout>WAR</layout>

@ -29,7 +29,6 @@ import org.airsonic.player.service.sonos.SonosHelper;
import org.airsonic.player.util.HttpRange; import org.airsonic.player.util.HttpRange;
import org.airsonic.player.util.StringUtil; import org.airsonic.player.util.StringUtil;
import org.airsonic.player.util.Util; import org.airsonic.player.util.Util;
import org.apache.catalina.connector.ClientAbortException;
import org.apache.commons.io.IOUtils; import org.apache.commons.io.IOUtils;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
@ -249,9 +248,12 @@ public class StreamController {
} }
} }
} }
} catch (ClientAbortException err) { } catch (Exception err) {
if("org.apache.catalina.connector.ClientAbortException".equals(err.getClass().getName())) {
LOG.info("org.apache.catalina.connector.ClientAbortException: Connection reset"); LOG.info("org.apache.catalina.connector.ClientAbortException: Connection reset");
return; return;
}
LOG.error("Error occurred in handleRequest.", err);
} finally { } finally {
if (status != null) { if (status != null) {
securityService.updateUserByteCounts(user, status.getBytesTransfered(), 0L, 0L); securityService.updateUserByteCounts(user, status.getBytesTransfered(), 0L, 0L);

Loading…
Cancel
Save