Pārlūkot izejas kodu

globalised some stuff in a function, i presume

Tareef 6 gadi atpakaļ
vecāks
revīzija
ccdada1b55
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  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