Skip to content

Commit baba653

Browse files
committed
Null release on destruct
Prevents potential double call to release during shutdown
1 parent 8b9f03f commit baba653

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Internal/PostgresPooledListener.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public function __destruct()
3838
EventLoop::queue($release);
3939
}
4040
});
41+
$this->release = null;
4142
}
4243
}
4344

0 commit comments

Comments
 (0)