From 910813f4adb2d94fd38702993b380eb0ff896218 Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Mon, 15 Jun 2015 11:41:24 +0300 Subject: [PATCH] compilation fix --- console/active_sessions.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/console/active_sessions.go b/console/active_sessions.go index 0bbc9cb74..2969e7989 100644 --- a/console/active_sessions.go +++ b/console/active_sessions.go @@ -48,10 +48,13 @@ func (self *CmdActiveSessions) RpcMethod() string { return self.rpcMethod } -func (self *CmdActiveSessions) RpcParams() interface{} { +func (self *CmdActiveSessions) RpcParams(ptr bool) interface{} { if self.rpcParams == nil { self.rpcParams = &utils.AttrGetSMASessions{} } + if ptr { + return self.rpcParams + } return *self.rpcParams }