Skip to content

Commit 6b74456

Browse files
refactor: reorder file event submission in handleFileEvent
- Moved the call to submitFileEvent to occur after unlocking the fileMutex, improving the event handling flow. (cherry picked from commit 025b442)
1 parent 44012f7 commit 6b74456

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

eventhandler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ func (eventHandler *EventHandler) handleFileEvent(event *Event) {
9090
}
9191
}
9292

93-
eventHandler.submitFileEvent(event)
94-
9593
eventHandler.fileMutex.Unlock()
94+
95+
eventHandler.submitFileEvent(event)
9696
}
9797

9898
func isSourceCodeFile(fileName string) bool {

0 commit comments

Comments
 (0)