diff options
Diffstat (limited to 'libdbus-qeventloop/dbusconnectioneventloop.cpp')
-rw-r--r-- | libdbus-qeventloop/dbusconnectioneventloop.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libdbus-qeventloop/dbusconnectioneventloop.cpp b/libdbus-qeventloop/dbusconnectioneventloop.cpp index e759d36..48152d9 100644 --- a/libdbus-qeventloop/dbusconnectioneventloop.cpp +++ b/libdbus-qeventloop/dbusconnectioneventloop.cpp @@ -53,9 +53,7 @@ void DBUSConnectionEventLoop::readSocket(int fd) const Watcher &watcher = it.value(); if (watcher.read && watcher.read->isEnabled()) { - watcher.read->setEnabled(false); dbus_watch_handle(watcher.watch, DBUS_WATCH_READABLE); - watcher.read->setEnabled(true); break; } @@ -76,9 +74,7 @@ void DBUSConnectionEventLoop::writeSocket(int fd) const Watcher &watcher = it.value(); if (watcher.write && watcher.write->isEnabled()) { - watcher.write->setEnabled(false); dbus_watch_handle(watcher.watch, DBUS_WATCH_WRITABLE); - watcher.write->setEnabled(true); break; } |