正在显示
1 个修改的文件
包含
4 行增加
和
2 行删除
| @@ -53,8 +53,6 @@ class ImapClient { | @@ -53,8 +53,6 @@ class ImapClient { | ||
| 53 | $content | 53 | $content | 
| 54 | ); | 54 | ); | 
| 55 | 55 | ||
| 56 | - // 设置为非阻塞模式 | ||
| 57 | - $this->isBlocking = stream_set_blocking($this->socket, false); | ||
| 58 | 56 | ||
| 59 | if($error){ | 57 | if($error){ | 
| 60 | throw new \Exception($error); | 58 | throw new \Exception($error); | 
| @@ -63,6 +61,10 @@ class ImapClient { | @@ -63,6 +61,10 @@ class ImapClient { | ||
| 63 | if (!$this->socket) { | 61 | if (!$this->socket) { | 
| 64 | throw new \Exception($this->host." connection fail."); | 62 | throw new \Exception($this->host." connection fail."); | 
| 65 | } | 63 | } | 
| 64 | + | ||
| 65 | + // 设置为非阻塞模式 | ||
| 66 | + $this->isBlocking = stream_set_blocking($this->socket, false); | ||
| 67 | + | ||
| 66 | } | 68 | } | 
| 67 | 69 | ||
| 68 | 70 | 
- 
请 注册 或 登录 后发表评论