mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-18 01:57:02 +00:00
First crack at single gob per mailbox, hardly works
This commit is contained in:
@@ -342,7 +342,10 @@ func (ss *Session) dataHandler() {
|
||||
if ss.server.storeMessages {
|
||||
for _, m := range messages {
|
||||
if m != nil {
|
||||
m.Close()
|
||||
if err := m.Close(); err != nil {
|
||||
ss.logError("Error: %v while writing message", err)
|
||||
// TODO Report to client?
|
||||
}
|
||||
expReceivedTotal.Add(1)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user