Changeset 79

Show
Ignore:
Timestamp:
12/23/09 20:53:38 (4 years ago)
Author:
jesus
Message:

I need to close the socket? WTF?!

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/contrib/pg_amqp/pg_amqp.c

    r78 r79  
    8585    int errorstate = bs->inerror; 
    8686    amqp_connection_close(bs->conn, AMQP_REPLY_SUCCESS); 
     87    if(bs->sockfd >= 0) close(bs->sockfd); 
    8788    amqp_destroy_connection(bs->conn); 
    8889    memset(bs, 0, sizeof(*bs));