Parcourir la source

globalised some stuff in a function, i presume

Tareef il y a 6 ans
Parent
commit
ccdada1b55
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      a2/sender.py

+ 2 - 1
a2/sender.py

@@ -53,7 +53,8 @@ sock.bind(('localhost', rport))
 # start receiver thread
 # receiver function
 def receiver():
-    #global confirmed   
+    global confirmed
+    global waking
  
     while(True):
         # get a packet, turn into packet type