Add a private connection shutdown method for error cases.
[free-sw/xcb/libxcb] / src / xcb_conn.c
index 2b24dc0..29d91f4 100644 (file)
@@ -247,6 +247,11 @@ void XCBDisconnect(XCBConnection *c)
 
 /* Private interface */
 
+void _xcb_conn_shutdown(XCBConnection *c)
+{
+    c->has_error = 1;
+}
+
 int _xcb_conn_wait(XCBConnection *c, pthread_cond_t *cond, struct iovec **vector, int *count)
 {
     int ret;