func (wj *AppJourney) NewDaemonController() {
	wj.StopTestRun()

	wj.journeyLock.Lock()
	defer wj.journeyLock.Unlock()
	wj.daemonController = executors.NewBufferedDaemonController()
	wj.events = events.NewEvents()
}
// NewDaemonController - calls StopTestRun and then sets new daemonController
// and new events on journey.
// This is a solution to prevent events being sent to a disconnected
// websocket instead of new websocket after the client reconnects.
calls StopTestRun and then sets new daemonController
and new events on journey.
This is a solution to prevent events being sent to a disconnected
websocket instead of new websocket after the client reconnects.
// NewDaemonController - calls StopTestRun and then sets new daemonController // and new events on journey . // This is a solution to prevent events being sent to a disconnected // websocket instead of new websocket after the client reconnects .
func (wj *AppJourney) NewDaemonController() {
	wj.StopTestRun()
	wj.journeyLock.Lock()
	defer wj.journeyLock.Unlock()
	wj.daemonController = executors.NewBufferedDaemonController()
	wj.events = events.NewEvents()
}
func ( wj * AppJourney ) NewDaemonController ( ) { wj . StopTestRun ( ) wj . journeyLock . Lock ( ) defer wj . journeyLock . Unlock ( ) wj . daemonController = executors . NewBufferedDaemonController ( ) wj . events = events . NewEvents ( ) }
calls StopTestRun and then sets new daemonController
and new events on journey.
calls StopTestRun and then sets new daemonController and new events on journey .