Changeset 290 for trunk/src/org/expeditee/agents
- Timestamp:
- 09/03/08 14:01:24 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/agents/mail/MailSession.java
r286 r290 337 337 } 338 338 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; 340 345 try { 341 346 if (_transport != null && _transport.isConnected()) { 342 347 _transport.close(); 348 result = true; 343 349 } 344 350 345 351 if (_folder != null && _folder.isOpen()) { 346 352 _folder.close(false); 353 result = true; 347 354 } 348 355 349 356 if (_store != null && _store.isConnected()) { 350 357 _store.close(); 358 result = true; 351 359 } 352 360 } catch (Exception e) { 353 361 354 362 } 363 return result; 355 364 } 356 365
Note:
See TracChangeset
for help on using the changeset viewer.