Browse Source

globalised some stuff in a function, i presume

Tareef 6 years ago
parent
commit
ccdada1b55
1 changed files with 2 additions and 1 deletions
  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