mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
[XSwiftBus] Remove unconditional socket error handling
Summary: Socket errors are handled in libdbus conditionally. There was no need to set an error on any kind of error code. This caused libdbus to drop our P2P connection, since MacOS regularly raised EAGAIN warning on the socket which seems to be expected behavior. Reviewers: #gatekeepers Maniphest Tasks: T513 Differential Revision: https://dev.swift-project.org/D95
This commit is contained in:
committed by
Mat Sutcliffe
parent
e5ed034023
commit
27b857abc4
@@ -58,7 +58,6 @@ namespace XSwiftBus
|
||||
auto *watchHandler = static_cast<WatchHandler *>(data);
|
||||
|
||||
unsigned int flags = 0;
|
||||
if (evutil_socket_geterror(fd) != 0) { flags |= DBUS_WATCH_ERROR; }
|
||||
if (event & EV_READ) { flags |= DBUS_WATCH_READABLE; }
|
||||
if (event & EV_WRITE) { flags |= DBUS_WATCH_WRITABLE; }
|
||||
dbus_watch_handle(watchHandler->m_watch, flags);
|
||||
|
||||
Reference in New Issue
Block a user