[Slim-Checkins] r8837 - /trunk/server/Slim/Networking/Slimproto.pm

adrian at svn.slimdevices.com adrian at svn.slimdevices.com
Sun Aug 6 11:40:33 PDT 2006


Author: adrian
Date: Sun Aug  6 11:40:31 2006
New Revision: 8837

URL: http://svn.slimdevices.com?rev=8837&view=rev
Log:
Bug: N/A
Description: check socket being closed is the active slimproto socket before
considering client disconnected

Modified:
    trunk/server/Slim/Networking/Slimproto.pm

Modified: trunk/server/Slim/Networking/Slimproto.pm
URL: http://svn.slimdevices.com/trunk/server/Slim/Networking/Slimproto.pm?rev=8837&r1=8836&r2=8837&view=diff
==============================================================================
--- trunk/server/Slim/Networking/Slimproto.pm (original)
+++ trunk/server/Slim/Networking/Slimproto.pm Sun Aug  6 11:40:31 2006
@@ -229,8 +229,8 @@
 		
 		delete $heartbeat{$client};
 
-		# check client not already forgotten
-		if ( Slim::Player::Client::getClient( $client->id ) ) {
+		# check client not forgotten and this is the active slimproto socket for this client
+		if ( Slim::Player::Client::getClient( $client->id ) && $clientsock == $client->tcpsock ) {
 			
 			# notify of disconnect
 			Slim::Control::Request::notifyFromArray($client, ['client', 'disconnect']);



More information about the checkins mailing list