diff --git a/src/pocketmine/scheduler/FileWriteTask.php b/src/pocketmine/scheduler/FileWriteTask.php index ab926f595..f3a29b5f0 100644 --- a/src/pocketmine/scheduler/FileWriteTask.php +++ b/src/pocketmine/scheduler/FileWriteTask.php @@ -44,10 +44,6 @@ class FileWriteTask extends AsyncTask{ } public function onRun(){ - try{ - file_put_contents($this->path, $this->contents, $this->flags); - }catch(\Throwable $e){ - - } + file_put_contents($this->path, $this->contents, $this->flags); } } diff --git a/src/pocketmine/scheduler/SendUsageTask.php b/src/pocketmine/scheduler/SendUsageTask.php index b618f33dd..788a08bcb 100644 --- a/src/pocketmine/scheduler/SendUsageTask.php +++ b/src/pocketmine/scheduler/SendUsageTask.php @@ -147,13 +147,9 @@ class SendUsageTask extends AsyncTask{ } public function onRun(){ - try{ - Internet::postURL($this->endpoint, $this->data, 5, [ - "Content-Type: application/json", - "Content-Length: " . strlen($this->data) - ]); - }catch(\Throwable $e){ - - } + Internet::postURL($this->endpoint, $this->data, 5, [ + "Content-Type: application/json", + "Content-Length: " . strlen($this->data) + ]); } }