Ignore:
Timestamp:
02/02/11 22:37:40 (11 years ago)
Author:
mmamonski
Message:

try to be resistant to torque restarts - avoid double disconnect == double free

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pbs_drmaa/session.c

    r1 r3  
    288288                        if (pbs_errno == PBSE_PROTOCOL || pbs_errno == PBSE_EXPIRED) 
    289289                         { 
    290                                 pbs_disconnect( pbsself->pbs_conn ); 
     290                                if ( pbsself->pbs_conn >= 0) 
     291                                        pbs_disconnect( pbsself->pbs_conn ); 
    291292                                sleep(1); 
    292293                                pbsself->pbs_conn = pbs_connect( pbsself->super.contact ); 
Note: See TracChangeset for help on using the changeset viewer.