summaryrefslogtreecommitdiff
blob: 25003c2702bda59563079b94a41949be0f30ac48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- Slim/Web/HTTP.pm.old	2010-07-06 08:30:49.243499965 +0100
+++ Slim/Web/HTTP.pm	2010-07-06 08:30:49.243499965 +0100
@@ -2214,9 +2214,10 @@
 		# only kill the timer if we were called for the active streaming connection;
 		# otherwise we might kill the timer related to the next connection too.
 		Slim::Utils::Timers::killTimers($client, \&tryStreamingLater);
-		
-		Slim::Networking::Select::addWrite($httpClient, \&sendStreamingResponse, 1);
 	}
+
+	# Bug 14740 - always call sendStreamingResponse so we ensure the socket gets closed
+	Slim::Networking::Select::addWrite($httpClient, \&sendStreamingResponse, 1);
 }
 
 sub forgetClient {