[Xcb] [PATCH 2/7] Ensure that there's still a valid connection to the X server before attempting to send a request.

Julien Danjou julien at danjou.info
Thu Mar 8 09:35:06 PST 2012


On Thu, Mar 08 2012, Alex Plotnick wrote:

> An exception is raised in that case. If xpybConn_invalid detects
> an invalid connection, it sets an appropriate exception and returns
> a non-zero value as an error indicator. The NULL we return in that
> case is also an error indicator (because we return a PyObject*); the
> exception is already set. This is a standard Python/C API idiom: see
> <http://docs.python.org/c-api/intro.html#exceptions>.

My bad, I misread the called function name, I though it was a xcb_ one.

Patch pushed, thanks!

-- 
           Julien
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/xcb/attachments/20120308/3e0fd10e/attachment.pgp>


More information about the Xcb mailing list