Commit a18cbe03 authored by Aurel's avatar Aurel

check master connection is not None before trying to send message


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@171 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 0c01a42a
......@@ -84,6 +84,7 @@ class ClientEventHandler(EventHandler):
if isinstance(node, StorageNode):
# Notify primary master node that a storage node is temporarily down
conn = app.master_conn
if conn is not None:
conn.lock()
try:
p = Packet()
......@@ -111,6 +112,7 @@ class ClientEventHandler(EventHandler):
if isinstance(node, StorageNode):
# Notify primary master node that a storage node is temporarily down
conn = app.master_conn
if conn is not None:
conn.lock()
try:
p = Packet()
......@@ -138,6 +140,7 @@ class ClientEventHandler(EventHandler):
if isinstance(node, StorageNode):
# Notify primary master node that a storage node is broken
conn = app.master_conn
if conn is not None:
conn.lock()
try:
p = Packet()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment