--- SlimServer_v6.0b2/Slim/Player/Client.pm Sat Mar 19 02:43:38 2005 +++ SlimS-changes-used-v6.0b2/Slim/Player/Client.pm Sat Mar 19 14:05:51 2005 @@ -728,6 +728,7 @@ # 95 is currentPlaylistRender # 96 is currentPlaylistChangeTime $client->[97] = undef; # tempVolume temporary volume setting + $client->[98] = undef; # lastReplyTime $::d_protocol && msg("New client connected: $id\n"); $client->lastirtime(0); @@ -870,6 +871,20 @@ } } +sub forgetlostClient { + my $id = shift; + my $client = getClient($id); + + if ($client) { + Slim::Web::HTTP::forgetClient($client); + #Slim::Player::Playlist::forgetClient($client); + # trying to play will close out any open files. + Slim::Control::Command::execute($client, ["play"]); + Slim::Utils::Timers::forgetClient($client); + delete $clientHash{$id}; + } +} + sub startup { my $client = shift; @@ -1597,4 +1612,8 @@ @_ ? ($r->[96] = shift) : $r->[96]; } +sub lastReplyTime { + my $r = shift; + @_ ? ($r->[98] = shift) : $r->[98]; +} 1;