Created
April 29, 2012 15:55
-
-
Save anonymous/2551510 to your computer and use it in GitHub Desktop.
a guest on Apr 29th, 2012 - pastebin.com/4jC1MwiM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var res = {} | |
var errored = false | |
getMetadata(key, EPID, function(err, metadata){ | |
if (errored) return | |
if (err) { | |
errored = true | |
cb(err) | |
return } | |
res.metadata = metadata | |
if (res.streams) cb(null, res) }) | |
getStreams(key, EPID, function(err, streams){ | |
if (errored) return | |
if (err) { | |
errored = true | |
cb(err) | |
return } | |
res.streams = streams | |
if (res.metadata) cb(null, res)}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment