minor fix;
This commit is contained in:
		
							parent
							
								
									847ce7b54e
								
							
						
					
					
						commit
						4d10b4dc86
					
				@ -208,14 +208,15 @@ int _sntll_writemsg(conn_t *co, sxmsg_t *msg)
 | 
				
			|||||||
  if(rd < 0) {
 | 
					  if(rd < 0) {
 | 
				
			||||||
    co->flags |= SNSX_CLOSED;
 | 
					    co->flags |= SNSX_CLOSED;
 | 
				
			||||||
    r = SNE_ESSL;
 | 
					    r = SNE_ESSL;
 | 
				
			||||||
  } else if(head->payload_length) rd = __conn_write(co, msg->payload, head->payload_length);
 | 
					  } else if(head->payload_length)  {
 | 
				
			||||||
  /* check up again */
 | 
					    rd = __conn_write(co, msg->payload, head->payload_length);
 | 
				
			||||||
  if(rd < 0) {
 | 
					    /* check up again */
 | 
				
			||||||
    co->flags |= SNSX_CLOSED;
 | 
					    if(rd < 0) {      co->flags |= SNSX_CLOSED;      r = SNE_ESSL;    }
 | 
				
			||||||
    r = SNE_ESSL;
 | 
					 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  pthread_mutex_unlock(&co->sslinout[2]);
 | 
					  pthread_mutex_unlock(&co->sslinout[2]);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  if(!(co->flags & SNSX_CLOSED)) r = SNE_SUCCESS;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  return r;
 | 
					  return r;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user