formatting issue
This commit is contained in:
parent
4cead30ea5
commit
69a555a144
@ -51,12 +51,13 @@ func handleClient(commandClient net.Conn, reportPostChan chan ReportPost) {
|
|||||||
_, exists := runninginstances[commandmap.Endpoint]
|
_, exists := runninginstances[commandmap.Endpoint]
|
||||||
if exists == true {
|
if exists == true {
|
||||||
log.Println("Already exists: " + commandmap.Endpoint)
|
log.Println("Already exists: " + commandmap.Endpoint)
|
||||||
|
responseback.Message = "Exists: " + commandmap.Endpoint
|
||||||
} else {
|
} else {
|
||||||
|
responseback.Message = "Added: " + commandmap.Endpoint
|
||||||
runninginstances[commandmap.Endpoint] = RunningInstance{}
|
runninginstances[commandmap.Endpoint] = RunningInstance{}
|
||||||
|
go StartInstance(commandmap.Endpoint, reportPostChan)
|
||||||
}
|
}
|
||||||
ri_mutex.Unlock()
|
ri_mutex.Unlock()
|
||||||
go StartInstance(commandmap.Endpoint, reportPostChan)
|
|
||||||
responseback.Message = "Already exists: " + commandmap.Endpoint
|
|
||||||
case "suspend":
|
case "suspend":
|
||||||
fmt.Println("Suspend")
|
fmt.Println("Suspend")
|
||||||
case "resume":
|
case "resume":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user