Explorar o código

globalised some stuff in a function, i presume

Tareef %!s(int64=6) %!d(string=hai) anos
pai
achega
ccdada1b55
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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