mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
protection for empty callcosts again
This commit is contained in:
@@ -18,5 +18,5 @@ PDF, Epub, Manpage http://readthedocs.org/projects/cgrates/downloads/
|
||||
|
||||
API reference http://gopkgdoc.appspot.com/pkg/github.com/cgrates/cgrates
|
||||
|
||||
Continous integration: [](http://goci.me/project/github.com/cgrates/cgrates) (http://goci.me rocks!)
|
||||
Continous integration: [](http://goci.me/project/github.com/cgrates/cgrates)
|
||||
|
||||
|
||||
@@ -111,6 +111,9 @@ func (s *Session) String() string {
|
||||
//
|
||||
func (s *Session) SaveOperations() {
|
||||
go func() {
|
||||
if len(s.CallCosts) == 0 {
|
||||
return
|
||||
}
|
||||
firstCC := s.CallCosts[0]
|
||||
for _, cc := range s.CallCosts[1:] {
|
||||
firstCC.Merge(cc)
|
||||
|
||||
Reference in New Issue
Block a user