diff options
Diffstat (limited to 'src/daq/accesslog/sfive-accesslog.py')
-rwxr-xr-x | src/daq/accesslog/sfive-accesslog.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/daq/accesslog/sfive-accesslog.py b/src/daq/accesslog/sfive-accesslog.py index e07f22c..1337f1c 100755 --- a/src/daq/accesslog/sfive-accesslog.py +++ b/src/daq/accesslog/sfive-accesslog.py @@ -108,6 +108,11 @@ class AccessLog(): self._proto = None self._conn = None + def run(self): + if self._initLog(): + reactor.callWhenRunning(self._initSocket) + reactor.run() + def _initLog(self): try: self._fd = open(self._logfile, 'r') @@ -117,11 +122,6 @@ class AccessLog(): return True - def run(self): - if self._initLog(): - reactor.callWhenRunning(self._initSocket) - reactor.run() - def _initSocket(self): print 'SFive: trying to connect to %s...' % (self._socket) self._proto = SFiveProto(self) |