Browse files

provisioning now emits "end" on response end from tropo

  • Loading branch information...
2 parents a9efb08 + f3d3363 commit f9fe5ffc59b84466c1059132b907000ae8c93569 @jharlap committed Feb 15, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/tropo-provisioning.js
View
3 lib/tropo-provisioning.js
@@ -91,6 +91,9 @@ TropoProvision.prototype.makeApiCall = function(method, host, path, payload) {
response.on('data', function(data) {
self.emit('responseBody', data.toString());
});
+ response.on('end', function() {
+ self.emit('end');
+ });
});
if(payload) {
request.write(payload);

0 comments on commit f9fe5ff

Please sign in to comment.