initial commit

This commit is contained in:
Prashant Gupta 2019-04-23 17:41:01 -07:00
parent 39119e193b
commit 8bc345892e

View File

@ -47,7 +47,10 @@ func (m *MouseMover) Start() {
} }
heartbeatCh := activityTracker.Start() heartbeatCh := activityTracker.Start()
run(heartbeatCh, m)
}
func run(heartbeatCh chan *tracker.Heartbeat, m *MouseMover) {
go func(m *MouseMover) { go func(m *MouseMover) {
logger := getLogger(m, false) //set writeToFile=true only for debugging logger := getLogger(m, false) //set writeToFile=true only for debugging
m.updateRunningStatus(true) m.updateRunningStatus(true)