Skip to content

Commit

Permalink
Accept callback for ::stop
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Borden committed Feb 6, 2015
1 parent e8243d5 commit 99aa15e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librato.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ librato.measure = librato.timing # alias
librato.start = ->
worker.start()

librato.stop = ->
librato.stop = (cb) ->
worker.stop()
librato.flush()
librato.flush(cb)

librato.flush = (cb = ->) ->
gauges = []
Expand Down

0 comments on commit 99aa15e

Please sign in to comment.