mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-03 15:00:26 +08:00
优化代码
This commit is contained in:
@@ -138,7 +138,7 @@ func (this *MemoryWriter) Close() error {
|
||||
func (this *MemoryWriter) Discard() error {
|
||||
// 需要在Locker之外
|
||||
defer this.once.Do(func() {
|
||||
this.endFunc(nil)
|
||||
this.endFunc(this.item)
|
||||
})
|
||||
|
||||
this.storage.locker.Lock()
|
||||
|
||||
Reference in New Issue
Block a user