python: Fix issue with probes for JSONRPC connections
[cascardo/ovs.git] / python / ovs / jsonrpc.py
index 6e7a2cc..d54d74b 100644 (file)
@@ -378,7 +378,7 @@ class Session(object):
         if ovs.stream.PassiveStream.is_valid_name(name):
             reconnect.set_passive(True, ovs.timeval.msec())
 
-        if ovs.stream.stream_or_pstream_needs_probes(name):
+        if not ovs.stream.stream_or_pstream_needs_probes(name):
             reconnect.set_probe_interval(0)
 
         return Session(reconnect, None)