Changeset 5246

Show
Ignore:
Timestamp:
02/09/08 23:03:39 (10 months ago)
Author:
morris
Message:

Also wait when SSL is compiled in but not enabled for this socket

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libwired/trunk/libwired/net/wi-socket.c

    r5230 r5246  
    15291529        if(timeout > 0.0) { 
    15301530#ifdef WI_SSL 
    1531                 if(socket->ssl && SSL_pending(socket->ssl) == 0) { 
     1531                if(!socket->ssl || (socket->ssl && SSL_pending(socket->ssl) == 0)) { 
    15321532#endif 
    15331533                        if(wi_socket_wait_descriptor(socket->sd, timeout, true, false) != WI_SOCKET_READY)