Permalink
Browse files

Another bugfix

  • Loading branch information...
1 parent e0c22d7 commit 1cccea4b82b93dc8cbef9aa09feed2d7da162d1e @mloccy mloccy committed May 25, 2012
Showing with 2 additions and 7 deletions.
  1. +2 −7 Controllers/networking.py
@@ -4,22 +4,17 @@
from Queue import Queue, Empty as QueueEmpty
from socket import AF_INET6 as ipv6, SOCK_STREAM as tcp, socket,inet_aton, error as SocketError, timeout as SocketTimeout
from Model.tophatclient import TopHatClient
-globallol=None
class Transport:
class Peer:
def __init__(self, port, address):
self.port =port
self.host =address
def __init__(self, socket,queue):
- #if type(socket) is not socket:
- # raise TypeError("Expected socket type got %s type instead" % type(socket))
+ if type(socket) is not type(socket()):
+ raise TypeError("Expected socket type got %s type instead" % type(socket))
self.queue = queue
self.__sock=socket
def write(self, data):
- global globallol
- globallol = True
- print "hi"
- #self.queue.put(data)
self.__sock.send(data)
def loseConnection(self):
pass

0 comments on commit 1cccea4

Please sign in to comment.