mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-09 00:20:25 +08:00
优化代码
This commit is contained in:
@@ -119,5 +119,6 @@ func (this *IPLibrary) LookupIP(ip string) *QueryResult {
|
|||||||
func (this *IPLibrary) Destroy() {
|
func (this *IPLibrary) Destroy() {
|
||||||
if this.reader != nil {
|
if this.reader != nil {
|
||||||
this.reader.Destroy()
|
this.reader.Destroy()
|
||||||
|
this.reader = nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user