Skip to content

Commit 4393775

Browse files
committed
Now computing service md5sums correctly
- Fixes #24. - Replaces PR #22. - Refactored the file parsing code a bit in the process; a little cleaner now.
1 parent 5778c7a commit 4393775

File tree

2 files changed

+237
-194
lines changed

2 files changed

+237
-194
lines changed

index.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,10 @@ let Rosnodejs = {
203203
var count = types.length;
204204
return new Promise((resolve, reject) => {
205205
types.forEach(function(type) {
206-
messages.getServiceRequest(type, function() {
207-
messages.getServiceResponse(type, function() {
208-
if (--count == 0) {
209-
resolve();
210-
}
211-
});
206+
messages.getService(type, function() {
207+
if (--count == 0) {
208+
resolve();
209+
}
212210
});
213211
});
214212
});

0 commit comments

Comments
 (0)