fix bug of ReceiveMail

reset deleting mails, when error has occured.
This commit is contained in:
taknb2nch
2014-02-18 13:07:09 +09:00
parent 6d71071555
commit 093f2bf740

View File

@@ -211,6 +211,10 @@ func ReceiveMail(addr, user, pass string, receiveFn ReceiveMailFunc) error {
}
defer func() {
if err != nil && err != EOF {
c.Rset()
}
c.Quit()
c.Close()
}()