Skip to content
Snippets Groups Projects
Verified Commit 832a158b authored by Erick Hitter's avatar Erick Hitter
Browse files

Don't requeue just yet

parent 96cfc2ae
Branches
Tags
No related merge requests found
...@@ -188,11 +188,6 @@ app.get( '/api/:lock_action(lock|unlock)/:lock_name', function( req, res, next ) ...@@ -188,11 +188,6 @@ app.get( '/api/:lock_action(lock|unlock)/:lock_name', function( req, res, next )
lock.connect().then( actionFunction ).catch( function( err ) { lock.connect().then( actionFunction ).catch( function( err ) {
console.error( err ); console.error( err );
lock.disconnect(); lock.disconnect();
try {
request( 'http://' + address + ':' + port + '/api/' + action + '/' + lockName );
} catch ( e ) {}
res.sendStatus( 500 ); res.sendStatus( 500 );
} ); } );
} ); } );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment