diff options
author | Max Kellermann <max@duempel.org> | 2014-01-06 18:02:57 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-06 18:26:55 +0100 |
commit | 793962c5b86cd063036a2d28907b0b33012483e1 (patch) | |
tree | 39531d85b0ab2bf480f74c74da788e566991ee25 /src/AvahiPoll.cxx | |
parent | 0d20130d07d69bb8ac4392af8f2ed25e5ea0bbad (diff) | |
download | mpd-793962c5b86cd063036a2d28907b0b33012483e1.tar.gz mpd-793962c5b86cd063036a2d28907b0b33012483e1.tar.xz mpd-793962c5b86cd063036a2d28907b0b33012483e1.zip |
event/SocketMonitor: don't close the socket automatically
Users now have to call Close() explicitly. This simplifies using the
class, as most users have automatic socket management already, and
Steal() had to be used often.
Diffstat (limited to 'src/AvahiPoll.cxx')
-rw-r--r-- | src/AvahiPoll.cxx | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/AvahiPoll.cxx b/src/AvahiPoll.cxx index d6f8b9f79..de0f2b1e3 100644 --- a/src/AvahiPoll.cxx +++ b/src/AvahiPoll.cxx @@ -57,10 +57,6 @@ public: Schedule(FromAvahiWatchEvent(_event)); } - ~AvahiWatch() { - Steal(); - } - static void WatchUpdate(AvahiWatch *w, AvahiWatchEvent event) { w->Schedule(FromAvahiWatchEvent(event)); } |