Bug 1882972 [Linux] Don't use POLLOUT on disconnected socket r=emilio

Backport from 852f23c8f4

Depends on D203430

Differential Revision: https://phabricator.services.mozilla.com/D203431
This commit is contained in:
stransky 2024-03-04 13:48:08 +00:00
parent 730a513447
commit 2f2061d413

View File

@ -326,11 +326,6 @@ struct pollfd* ProxiedConnection::LoadPollFd(struct pollfd* aPfds) {
}
bool ProxiedConnection::ConnectToCompositor() {
if (!(mCompositorFlags & POLLOUT)) {
// Try again later
return true;
}
struct sockaddr_un addr = {};
addr.sun_family = AF_UNIX;
strcpy(addr.sun_path, mWaylandDisplay);