Slightly better error handling for uploads

This commit is contained in:
Albert Santoni 2015-11-13 10:53:47 -05:00
parent aa6f89d920
commit 591f7d59f0
2 changed files with 10 additions and 4 deletions

View file

@ -141,7 +141,7 @@ class Application_Model_RabbitMq
$channel->exchange_declare($exchange, $exchangeType, false, true, $autoDeleteExchange);
$msg = new AMQPMessage($jsonData, array('content_type' => 'text/plain'));
$channel->basic_publish($msg, $exchange);
$channel->close();
$conn->close();