mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-02-10 18:25:29 -05:00
remove context in struct
This commit is contained in:
4
v2ray.go
4
v2ray.go
@@ -101,7 +101,7 @@ func (s *Instance) ID() uuid.UUID {
|
||||
}
|
||||
|
||||
// Close shutdown the V2Ray instance.
|
||||
func (s *Instance) Close() {
|
||||
func (s *Instance) Close() error {
|
||||
s.access.Lock()
|
||||
defer s.access.Unlock()
|
||||
|
||||
@@ -109,6 +109,8 @@ func (s *Instance) Close() {
|
||||
for _, f := range s.features {
|
||||
f.Close()
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// Start starts the V2Ray instance, including all registered features. When Start returns error, the state of the instance is unknown.
|
||||
|
||||
Reference in New Issue
Block a user