Ignore:
Timestamp:
07/08/10 17:52:20 (14 years ago)
Author:
amuller
Message:

Ticket #1135 - Aplicando alterações do branches 2.0 no branches 2.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/expressoMail1_2/inc/class.SieveS.inc.php

    r1149 r3018  
    178178 
    179179                //Verifica a conexao 
    180                 if(!$this->socket){ 
     180                if(!is_resource($this->socket)){  
    181181                        $this->errstr = "listscripts: sem conexão para o servidor $this->host"; 
    182182                        return false; 
     
    187187         
    188188                $said = $this->read(); 
    189                 while (!preg_match("/^OK/",$said) && !preg_match("/^NO/",$said)) { 
     189                while (is_resource($this->socket) && (!preg_match("/^OK/",$said) && !preg_match("/^NO/",$said))) {  
    190190         
    191191                    // Cyrus v1 script lines look like '"script*"' with the  
Note: See TracChangeset for help on using the changeset viewer.