Skip to content

Commit

Permalink
Merge pull request #225 from wakatime/main
Browse files Browse the repository at this point in the history
Release v5.7.1
  • Loading branch information
alanhamlett authored Mar 18, 2024
2 parents a7593ae + 3572f8f commit 706e98a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions WakaTime/WakaTime.swift
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,6 @@ class WakaTime: HeartbeatEventHandler {
let category = category ?? Category.coding
guard shouldSendHeartbeat(entity: entity, time: time, isWrite: isWrite, category: category) else { return }

lastEntity = entity
lastTime = time
lastCategory = category

// make sure we should be tracking this app to avoid race condition bugs
// do this after shouldSendHeartbeat for better performance because handleEvent may
// be called frequently
Expand Down Expand Up @@ -140,6 +136,10 @@ class WakaTime: HeartbeatEventHandler {

Logging.default.log("Sending heartbeat with: \(args)")

lastEntity = entity
lastTime = time
lastCategory = category

process.arguments = args
process.standardOutput = FileHandle.nullDevice
process.standardError = FileHandle.nullDevice
Expand Down

0 comments on commit 706e98a

Please sign in to comment.