summaryrefslogtreecommitdiff
path: root/src/xcb_xid.c
diff options
context:
space:
mode:
authorJamey Sharp <jamey@minilop.net>2006-09-15 01:09:27 -0700
committerJamey Sharp <jamey@minilop.net>2006-09-21 15:18:57 -0700
commit7f71bf9c0f30536e85907b2c991cb7001861e1d3 (patch)
treed8c3587b5b3851cf9df9b8555e11acd3581d2743 /src/xcb_xid.c
parent0aa96bfc7abe18889cd85bfaa05b05d53e572bb1 (diff)
Make all public functions do nothing on an error connection.
Diffstat (limited to 'src/xcb_xid.c')
-rw-r--r--src/xcb_xid.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xcb_xid.c b/src/xcb_xid.c
index 1c53b53..a2e7dec 100644
--- a/src/xcb_xid.c
+++ b/src/xcb_xid.c
@@ -36,6 +36,8 @@
CARD32 XCBGenerateID(XCBConnection *c)
{
CARD32 ret;
+ if(c->has_error)
+ return -1;
pthread_mutex_lock(&c->xid.lock);
if(c->xid.last == c->xid.max)
{