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]
|
||||
if exists == true {
|
||||
log.Println("Already exists: " + commandmap.Endpoint)
|
||||
responseback.Message = "Exists: " + commandmap.Endpoint
|
||||
} else {
|
||||
responseback.Message = "Added: " + commandmap.Endpoint
|
||||
runninginstances[commandmap.Endpoint] = RunningInstance{}
|
||||
go StartInstance(commandmap.Endpoint, reportPostChan)
|
||||
}
|
||||
ri_mutex.Unlock()
|
||||
go StartInstance(commandmap.Endpoint, reportPostChan)
|
||||
responseback.Message = "Already exists: " + commandmap.Endpoint
|
||||
case "suspend":
|
||||
fmt.Println("Suspend")
|
||||
case "resume":
|
||||
|
Loading…
x
Reference in New Issue
Block a user