Browse Source

- Merge with edhelas

pull/16/head
Jaussoin Timothée 11 years ago
parent
commit
d946f50454
  1. 12
      app/models/sessionx/SessionxDAO.php
  2. 3
      src/Movim/Daemon/Core.php
  3. 2
      src/Movim/Daemon/Session.php

12
app/models/sessionx/SessionxDAO.php

@ -248,6 +248,18 @@ class SessionxDAO extends SQL {
$this->run('Sessionx');
}*/
function clear() {
$this->_sql = '
truncate table sessionx';
$this->prepare(
'Sessionx',
array(
)
);
$this->run('Sessionx');
}
function getAll() {
$this->_sql = '

3
src/Movim/Daemon/Core.php

@ -21,6 +21,9 @@ class Core implements MessageComponentInterface {
$this->loop = $loop;
$this->baseuri = $baseuri;
$sd = new \Modl\SessionxDAO();
$sd->clear();
$this->registerCleaner();
}

2
src/Movim/Daemon/Session.php

@ -46,7 +46,7 @@ class Session {
// Launching the linker
$this->process = new \React\ChildProcess\Process(
'php linker.php',
'exec php linker.php',
null,
array(
'sid' => $this->sid,

Loading…
Cancel
Save