From: <pdo...@us...> - 2017-06-09 10:25:29
|
Revision: 14662 http://sourceforge.net/p/squirrelmail/code/14662 Author: pdontthink Date: 2017-06-09 10:25:27 +0000 (Fri, 09 Jun 2017) Log Message: ----------- SM doesn't know how to log in again on the same connection, so best to actually close the file handle as well Modified Paths: -------------- trunk/squirrelmail/functions/imap_general.php Modified: trunk/squirrelmail/functions/imap_general.php =================================================================== --- trunk/squirrelmail/functions/imap_general.php 2017-06-09 10:22:32 UTC (rev 14661) +++ trunk/squirrelmail/functions/imap_general.php 2017-06-09 10:25:27 UTC (rev 14662) @@ -1063,8 +1063,10 @@ 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); + } } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |