code: func (a *Astilectron) watchNoAccept(timeout time.Duration, chanAccepted chan bool) {
  	//check timeout
  	if timeout == 0 {
  		timeout = DefaultAcceptTCPTimeout
  	}
  	var t = time.NewTimer(timeout)
  	defer t.Stop()
  	for {
  		select {
  		case <-chanAccepted:
  			return
  		case <-t.C:
  			astilog.Errorf("No TCP connection has been accepted in the past %s", timeout)
  			a.dispatcher.dispatch(Event{Name: EventNameAppNoAccept, TargetID: targetIDApp})
  			a.dispatcher.dispatch(Event{Name: EventNameAppCmdStop, TargetID: targetIDApp})
  			return
  		}
  	}
  }
docs: // watchNoAccept checks whether a TCP connection is accepted quickly enough