1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-04-18 03:29:12 -04:00
This commit is contained in:
Darien Raymond
2018-12-03 22:44:42 +01:00
parent 05f8de1b8f
commit 28fa84ce69
11 changed files with 60 additions and 0 deletions

View File

@@ -303,6 +303,8 @@ func (s *Instance) GetFeature(featureType interface{}) features.Feature {
// 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.
//
// v2ray:api:stable
func (s *Instance) Start() error {
s.access.Lock()
defer s.access.Unlock()