Browse Source

changed wrong logic for checkig busy attribute

Karlo Smid 13 years ago
parent
commit
96ca20f4b0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      proxy.py

+ 1 - 1
proxy.py

@@ -14,7 +14,7 @@ class Proxy:
 
 
     def work (self):                         
     def work (self):                         
         print("Proxy checking for Sales Manager availability")                         
         print("Proxy checking for Sales Manager availability")                         
-        if self.busy == 'Yes':                                      
+        if self.busy == 'No':                                      
             self.sales = SalesManager()                                      
             self.sales = SalesManager()                                      
             time.sleep(2);                                      
             time.sleep(2);                                      
             self.sales.talk()                         
             self.sales.talk()