From f6049614ab41c3ae22a6550b94883240e273a3fa Mon Sep 17 00:00:00 2001 From: tgoff0 Date: Fri, 22 May 2015 00:53:54 +0000 Subject: [PATCH] Undo check for configured controlnet, which is optional. --- daemon/core/session.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon/core/session.py b/daemon/core/session.py index 413e3cbe..d5e74ee9 100644 --- a/daemon/core/session.py +++ b/daemon/core/session.py @@ -803,6 +803,8 @@ class Session(object): def getctrlnetidx(self, dev): if dev[0:4] == 'ctrl' and int(dev[4]) in [0,1,2,3]: idx = int(dev[4]) + if idx == 0: + return idx if idx < 4 and self.getctrlnetprefixes()[idx] is not None: return idx else: