File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -73,8 +73,8 @@ export class IMAPFolder extends Folder {
7373 } catch ( ex ) {
7474 this . account . log ( this , conn , "open mailbox failed" , ex ) ;
7575 if ( ex . code == "NoConnection" ) {
76- lockMailbox . release ( ) ;
77- lock . release ( ) ; // reconnect() uses runOnce()
76+ lockMailbox ? .release ( ) ;
77+ lock ? .release ( ) ; // reconnect() uses runOnce()
7878 conn = await this . account . reconnect ( conn , purpose ) ;
7979 this . account . log ( this , conn , "open mailbox after reconnect" ) ;
8080 lock = await this . account . connectionLock . get ( conn ) . lock ( ) ;
@@ -95,8 +95,8 @@ export class IMAPFolder extends Folder {
9595 throw ex ;
9696 }
9797 } finally {
98- lock . release ( ) ;
99- lockMailbox . release ( ) ;
98+ lock ? .release ( ) ;
99+ lockMailbox ? .release ( ) ;
100100 this . account . log ( this , null , "released lock" ) ;
101101 }
102102 }
You can’t perform that action at this time.
0 commit comments