core: More reliable way to wait for idle handlers
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Wed, 17 Mar 2010 14:19:45 +0000 (16:19 +0200)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Wed, 17 Mar 2010 15:45:30 +0000 (17:45 +0200)
commita082475116f0fb1ddaef252c2b8cccf9f4cd999d
tree4b0a716be869c59ee0765f08c1835c268b548646
parentb57d5e82f451a43c0c5a548f4cc6008b08fa3e76
core: More reliable way to wait for idle handlers

Instead of keeping the ID of the last installed idle handler and then
removing it at the end, just add a new idle hander to end the response so
the response is ended after all the idle handlers have been called. This
fixes the issue of LiveResponse not sending all the bytes to the client
before closing the socket on EOS.
src/rygel/rygel-live-response.vala