Release all references

This commit is contained in:
v2ray committed 2016-03-11 23:51:58 +01:00
1 parent f5960db27e
commit ff69ac7a0e
9 files changed
+42 -9

No files matched your search

+5
View File
@@ -50,6 +50,11 @@ func (reader *TimeOutReader) SetTimeOut(value int) {
}
}
func (reader *TimeOutReader) Release() {
reader.connection = nil
reader.worker = nil
}
type timedReaderWorker struct {
timeout int
connection net.Conn