Ignore:
Timestamp:
09/03/08 14:01:24 (16 years ago)
Author:
ra33
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/agents/mail/MailSession.java

    r286 r290  
    337337        }
    338338
    339         public synchronized void finalise() {
     339        /**
     340         * Closes the mail folders.
     341         * @return true if the folders needed to be closed.
     342         */
     343        public synchronized boolean finalise() {
     344                boolean result = false;
    340345                try {
    341346                        if (_transport != null && _transport.isConnected()) {
    342347                                _transport.close();
     348                                result = true;
    343349                        }
    344350
    345351                        if (_folder != null && _folder.isOpen()) {
    346352                                _folder.close(false);
     353                                result = true;
    347354                        }
    348355
    349356                        if (_store != null && _store.isConnected()) {
    350357                                _store.close();
     358                                result = true;
    351359                        }
    352360                } catch (Exception e) {
    353361
    354362                }
     363                return result;
    355364        }
    356365
Note: See TracChangeset for help on using the changeset viewer.