Prechádzať zdrojové kódy

SM doesn't know how to log in again on the same connection, so best to actually close the file handle as well

pdontthink 8 rokov pred
rodič
commit
2454a09f25
1 zmenil súbory, kde vykonal 3 pridanie a 1 odobranie
  1. 3 1
      functions/imap_general.php

+ 3 - 1
functions/imap_general.php

@@ -1063,8 +1063,10 @@ function sqimap_login ($username, $password, $imap_server_address,
 function sqimap_logout ($imap_stream) {
     /* Logout is not valid until the server returns 'BYE'
      * If we don't have an imap_ stream we're already logged out */
-    if(isset($imap_stream) && $imap_stream)
+    if(isset($imap_stream) && $imap_stream) {
         sqimap_run_command($imap_stream, 'LOGOUT', false, $response, $message);
+        fclose($imap_stream);
+    }
 }
 
 /**