Closed jku closed 11 years ago
I realise I've already pushed this commit but there is a problem with it. Sometimes I end up with the same server twice in my server's list. This happens if a server is discovered by dleyna-server-service during a call to GetServers, i.e., the server is returned once by GetServers and once by notification. To fix this we could either check the key in self.__append_server_list_row or not register for notifications until GetServer has returned.
On 19 March 2013 15:17, markdryan notifications@github.com wrote:
I realise I've already pushed this commit but there is a problem with it. Sometimes I end up with the same server twice in my server's list. This happens if a server is discovered by dleyna-server-service during a call to GetServers, i.e., the server is returned once by GetServers and once by notification. To fix this we could either check the key in self.__append_server_list_row or not register for notifications until GetServer has returned.
Thanks, I'll take a look.
This was not needed before as GetServers() results were always handled in init() -- so no callbacks could yet exist. Now with asynchronous GetServers() handling this is no longer true.
Signed-off-by: Jussi Kukkonen jussi.kukkonen@intel.com