- refactored many try-catch clauses

- added todos for validating catching
This commit is contained in:
Steffen Schröder
2014-02-13 14:21:25 +01:00
parent 10dfd6b0cb
commit 4197dc82ff
23 changed files with 213 additions and 293 deletions

View File

@ -191,12 +191,7 @@ class CallbackManager {
return;
}
try {
$callbacks = $this->maniaControl->client->executeCallbacks();
} catch(\Exception $e) {
trigger_error("Error reading server callbacks. " . $e->getMessage());
return;
}
$callbacks = $this->maniaControl->client->executeCallbacks();
// Handle callbacks
foreach($callbacks as $callback) {