Skip to content

Commit be88437

Browse files
committed
🐛 Synchronize state_authenticated!
1 parent f117dbd commit be88437

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/net/imap.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3791,7 +3791,9 @@ def state_selected!
37913791
end
37923792

37933793
def state_unselected!
3794-
state_authenticated! if connection_state.to_sym == :selected
3794+
synchronize do
3795+
state_authenticated! if connection_state.to_sym == :selected
3796+
end
37953797
end
37963798

37973799
def state_logout!

0 commit comments

Comments
 (0)