parameters: (obg, string)
docstring: Callback called when a new session is closed.
docstring_summary: Callback called when a new session is closed.
docstring_tokens: Callback called when a new session is closed .
function: def __connectionClosedCallback(obg, string):
      """Callback called when a new session is closed."""
      global Connections, ActiveConnection
      pm = vtkProcessModule.GetProcessModule()
      sid = pm.GetEventCallDataSessionId()
      if sid:
          c = GetConnectionFromId(sid)
          if c:
              for cc in range(len(Connections)):
                  if Connections[cc] == c:
                      del Connections[cc]
                      break
              c.close()
              del c
      import gc
      gc.collect()
function_tokens: def __connectionClosedCallback ( obg , string ) : global Connections , ActiveConnection pm = vtkProcessModule . GetProcessModule ( ) sid = pm . GetEventCallDataSessionId ( ) if sid : c = GetConnectionFromId ( sid ) if c : for cc in range ( len ( Connections ) ) : if Connections [ cc ] == c : del Connections [ cc ] break c . close ( ) del c import gc gc . collect ( )