Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
Remove segfault-handler require from debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
MadLittleMods committed Jun 15, 2015
1 parent 0e0491a commit 4048b19
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var SegfaultHandler = require('segfault-handler');
SegfaultHandler.registerHandler();
//var SegfaultHandler = require('segfault-handler');
//SegfaultHandler.registerHandler();

var Promise = require('bluebird');
var index = require('./package.json');
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@
"version": "1.2.0",
"description": "Listen to USB devices and detect changes on them.",
"main": "index.js",
"dependencies": {
"bindings": "1.1.0",
"bluebird": "^2.9.27",
"eventemitter2": ">=0.4.11",
"nan": "^1.8.4"
},
"gypfile": true,
"scripts": {
"test": "mocha --timeout 10000",
Expand Down Expand Up @@ -39,6 +33,12 @@
"type": "MIT",
"url": "https://raw.github.com/MadLittleMods/node-usb-detection/master/licence"
},
"dependencies": {
"bindings": "1.1.0",
"bluebird": "^2.9.27",
"eventemitter2": ">=0.4.11",
"nan": "^1.8.4"
},
"devDependencies": {
"chai": "^3.0.0",
"chai-as-promised": "^5.1.0",
Expand Down
2 changes: 0 additions & 2 deletions src/deviceList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,13 @@ DeviceItem_t* GetItemFromList(char* key) {
bool IsItemAlreadyStored(char* key) {
map<string, DeviceItem_t*>::iterator it;

/* */
it = deviceMap.find(key);
if(it == deviceMap.end()) {
return false;
}
else {
return true;
}
/* */

return true;
}
Expand Down

0 comments on commit 4048b19

Please sign in to comment.