class ElasticAPM::Transport::Base

def stop_watcher

def stop_watcher
  @watcher_mutex.synchronize do
    return if watcher.nil? || @pid != Process.pid
    watcher.shutdown
  end
end