Fix the no-session problem with iTunes 4.7 by counting unique ip addresses rather than sessions in the online user count

This commit is contained in:
Ron Pedde 2004-11-22 07:31:44 +00:00
parent a95f75c667
commit 4e07eba759

View File

@ -708,19 +708,18 @@ int config_get_session_count(void) {
}
pcurrent=scan_status.next;
while(pcurrent) {
if(pcurrent->session != 0) {
/* check to see if there is another one before this one */
pcheck=scan_status.next;
while(pcheck != pcurrent) {
if(pcheck->session == pcurrent->session)
if(strcmp(pcheck->host,pcurrent->host) == 0)
break;
pcheck=pcheck->next;
}
if(pcheck == pcurrent)
count++;
}
pcurrent=pcurrent->next;
}