1
0
mirror of https://github.com/danog/amp.git synced 2024-11-30 04:29:08 +01:00

Fix #132 (TypeError calling Driver::disable())

This commit is contained in:
Bob Weinand 2017-05-19 15:57:49 +02:00 committed by GitHub
parent 03d1630b69
commit 4fe48c8aec

View File

@ -49,7 +49,7 @@ class UvDriver extends Driver {
default: // Disable all related watchers and notify the loop error handler.
foreach ($watchers as $watcher) {
$this->disable($watcher);
$this->disable($watcher->id);
}
$this->error(new \Error(
\sprintf("UV_%s: %s", \uv_err_name($status), \ucfirst(\uv_strerror($status)))