mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Merge branch 'release/3.3' into release/3.4
This commit is contained in:
commit
0543c17849
@ -44,10 +44,6 @@ class FileWriteTask extends AsyncTask{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function onRun(){
|
public function onRun(){
|
||||||
try{
|
file_put_contents($this->path, $this->contents, $this->flags);
|
||||||
file_put_contents($this->path, $this->contents, $this->flags);
|
|
||||||
}catch(\Throwable $e){
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -147,13 +147,9 @@ class SendUsageTask extends AsyncTask{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function onRun(){
|
public function onRun(){
|
||||||
try{
|
Internet::postURL($this->endpoint, $this->data, 5, [
|
||||||
Internet::postURL($this->endpoint, $this->data, 5, [
|
"Content-Type: application/json",
|
||||||
"Content-Type: application/json",
|
"Content-Length: " . strlen($this->data)
|
||||||
"Content-Length: " . strlen($this->data)
|
]);
|
||||||
]);
|
|
||||||
}catch(\Throwable $e){
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user