Changeset 2862
- Timestamp:
- 03/16/10 22:48:15 (5 months ago)
- Files:
-
- climm/src/xmpp_base.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
climm/src/xmpp_base.c
r2856 r2862 1504 1504 } 1505 1505 else if (strcmp ("failure", iks_name (node)) == 0) 1506 { 1507 s_repl (&serv->passwd, NULL); 1506 1508 XmppStreamError (serv, "sasl authentication failed"); 1509 } 1507 1510 else if (strcmp ("success", iks_name (node)) == 0) 1508 1511 iks_send_header (prs, serv->xmpp_id->server); … … 1600 1603 } 1601 1604 } 1605 conn->connect |= 0x40; 1602 1606 rc = iks_recv (prs, 0); 1607 conn->connect &= ~0x40; 1603 1608 if (rc != IKS_OK && conn->dispatcher) 1604 1609 XmppStreamError (conn->serv, s_sprintf ("failing with error code %d", rc)); … … 1609 1614 void XMPPLogout (Server *serv) 1610 1615 { 1611 if (serv->xmpp_parser )1616 if (serv->xmpp_parser && ~serv->conn->connect & 0x40) 1612 1617 { 1613 1618 iksparser *prs = serv->xmpp_parser;
