mirror of https://github.com/v2ray/v2ray-core
comments
parent
92aef24f98
commit
c4f1e10a3d
1
v2ray.go
1
v2ray.go
|
@ -114,6 +114,7 @@ func (s *Instance) Close() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Start starts the V2Ray instance, including all registered features. When Start returns error, the state of the instance is unknown.
|
// Start starts the V2Ray instance, including all registered features. When Start returns error, the state of the instance is unknown.
|
||||||
|
// A V2Ray instance can be started only once. Upon closing, the instance is not guaranteed to start again.
|
||||||
func (s *Instance) Start() error {
|
func (s *Instance) Start() error {
|
||||||
s.access.Lock()
|
s.access.Lock()
|
||||||
defer s.access.Unlock()
|
defer s.access.Unlock()
|
||||||
|
|
Loading…
Reference in New Issue