Shut down the connection in all "fatal" error cases.
[free-sw/xcb/libxcb] / src / xcb_xlib.c
index 61518f7..054bc2e 100644 (file)
 
 unsigned int XCBGetRequestSent(XCBConnection *c)
 {
+    if(c->has_error)
+        return 0;
     return c->out.request;
 }
 
 pthread_mutex_t *XCBGetIOLock(XCBConnection *c)
 {
+    if(c->has_error)
+        return 0;
     return &c->iolock;
 }