1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-06 09:15:37 -05:00

close method for point server

This commit is contained in:
v2ray
2016-01-04 00:33:25 +01:00
parent 201481a82c
commit 56c5302367
11 changed files with 80 additions and 49 deletions

View File

@@ -113,6 +113,13 @@ func NewPoint(pConfig PointConfig) (*Point, error) {
return vpoint, nil
}
func (this *Point) Close() {
this.ich.Close()
for _, idh := range this.idh {
idh.Close()
}
}
// Start starts the Point server, and return any error during the process.
// In the case of any errors, the state of the server is unpredicatable.
func (this *Point) Start() error {