Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Do not raise if poll_for_event has no event

Signed-off-by: Julien Danjou <julien@danjou.info>
  • Loading branch information...
commit 3f49332db5a911e1e59b1819a7d6ed9d3714a35a 1 parent b71d27e
@jd jd authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/conn.c
View
6 src/conn.c
@@ -456,8 +456,10 @@ xpybConn_poll_for_event(xpybConn *self, PyObject *args)
data = xcb_poll_for_event(self->conn);
if (data == NULL) {
- PyErr_SetString(PyExc_IOError, "I/O error on X server connection.");
- return NULL;
+ if (xpybConn_invalid(self->conn))
+ return NULL;
+ else
+ Py_RETURN_NONE;
}
if (data->response_type == 0) {
Please sign in to comment.
Something went wrong with that request. Please try again.