@@ -542,12 +542,12 @@ class TcpConnection extends ConnectionInterface
}
else
{
+ if($data !== null)
+ {
+ $this->send($data);
+ }
$this->_status = self::STATUS_CLOSING;
- if($data !== null)
- {
- $this->send($data);
- }
if($this->_sendBuffer === '')
$this->destroy();