added in session aswell

This commit is contained in:
Radu Ioan Fericean
2012-08-03 13:21:43 +03:00
parent 1e97aa4750
commit a04f53fbd2

View File

@@ -111,7 +111,7 @@ func (s *Session) String() string {
//
func (s *Session) SaveOperations() {
go func() {
if len(s.CallCosts) == 0 {
if s == nil || len(s.CallCosts) == 0 {
return
}
firstCC := s.CallCosts[0]