Exemplo n.º 1
0
def autostart(reason, **kwargs):
    global socketHandler
    if reason == 1:
        socketHandler = None
    else:
        if socketHandler is None:
            socketHandler = SocketMMIMessageHandler()
        else:
            print "[SocketMMI] - socketHandler already connected."
Exemplo n.º 2
0
def sessionstart(reason, session):
    global socketHandler
    if socketHandler is None:
        socketHandler = SocketMMIMessageHandler()
    socketHandler.setSession(session)
Exemplo n.º 3
0
def autostart(reason, **kwargs):
    global socketHandler
    if reason == 1:
        socketHandler = None
    else:
        socketHandler = SocketMMIMessageHandler()
Exemplo n.º 4
0
def sessionstart(reason, session):
	global socketHandler
	if socketHandler is None:
		socketHandler = SocketMMIMessageHandler()
	socketHandler.setSession(session)