mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 09:14:06 +02:00
type fixes
This commit is contained in:
parent
7a74710aaa
commit
b69c20d21a
12 changed files with 25 additions and 19 deletions
|
|
@ -49,13 +49,13 @@ class NotifyHandler implements INotifyHandler {
|
|||
if (!$this->listening) {
|
||||
return [];
|
||||
}
|
||||
stream_set_blocking($this->connection->getOutputStream(), 0);
|
||||
stream_set_blocking($this->connection->getOutputStream(), false);
|
||||
$lines = [];
|
||||
while (($line = $this->connection->readLine())) {
|
||||
$this->checkForError($line);
|
||||
$lines[] = $line;
|
||||
}
|
||||
stream_set_blocking($this->connection->getOutputStream(), 1);
|
||||
stream_set_blocking($this->connection->getOutputStream(), true);
|
||||
return array_values(array_filter(array_map([$this, 'parseChangeLine'], $lines)));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue