Don't requeue just yet

parent 96cfc2ae
......@@ -188,11 +188,6 @@ app.get( '/api/:lock_action(lock|unlock)/:lock_name', function( req, res, next )
lock.connect().then( actionFunction ).catch( function( err ) {
console.error( err );
lock.disconnect();
try {
request( 'http://' + address + ':' + port + '/api/' + action + '/' + lockName );
} catch ( e ) {}
res.sendStatus( 500 );
} );
} );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment