summaryrefslogtreecommitdiffstats
path: root/lib/agent/agent.go
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-12-15 22:48:35 +0100
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-12-15 23:05:25 +0100
commit89563054ea6305c7270dcc6ab6fa5b286eb5f742 (patch)
tree862e74f361592d38fd3f77ddb4c08276f4db45ee /lib/agent/agent.go
parent9e6fb5106bcb3a0f93a616198ece579c61eb129b (diff)
Fixed xds-server folder events detection.
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'lib/agent/agent.go')
-rw-r--r--lib/agent/agent.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/agent/agent.go b/lib/agent/agent.go
index a562e77..989c9a0 100644
--- a/lib/agent/agent.go
+++ b/lib/agent/agent.go
@@ -132,6 +132,9 @@ func (ctx *Context) Run() (int, error) {
ctx._logPrint("Logging file for HTTP requests: %s\n", logFileHTTPReq)
}
+ // Create events management
+ ctx.events = NewEvents(ctx)
+
// Create syncthing instance when section "syncthing" is present in agent-config.json
if ctx.Config.FileConf.SThgConf != nil {
ctx.SThg = st.NewSyncThing(ctx.Config, ctx.Log)
@@ -186,9 +189,6 @@ func (ctx *Context) Run() (int, error) {
// Sessions manager
ctx.sessions = NewClientSessions(ctx, cookieMaxAge)
- // Create events management
- ctx.events = NewEvents(ctx)
-
// Create projects management
ctx.projects = NewProjects(ctx, ctx.SThg)