Browse Source

Fix prefetch of empty list

Pascal Peridont 18 năm trước cách đây
mục cha
commit
5e911aec34
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      std/mtwin/mail/imap/Mailbox.hx

+ 2 - 0
std/mtwin/mail/imap/Mailbox.hx

@@ -124,6 +124,8 @@ class Mailbox {
 	}
 
 	public function prefetch( l : List<Message> ){
+		if( l.length == 0 )
+			return;
 		select();
 
 		var a = new Array();