Commits

Owen Nelson committed 246be4c

I don't know what I'm doing

  • Participants
  • Parent commits a8d7864
  • Branches twisted

Comments (0)

Files changed (1)

File src/golgui/runner.py

 from twisted.internet import reactor
 from twisted.python import log
 from twisted.internet.protocol import Factory
-from twisted.internet.endpoints import TCP4ServerEndpoint
 from twisted.protocols.basic import LineReceiver
 
 window = pyglet.window.Window(resizable=True, visible=False)
     print "listening on port %d" % port
     log.startLogging(sys.stdout)
 
-    endpoint = TCP4ServerEndpoint(reactor, port)
-    endpoint.listen(GOLFactory())
+    reactor.listenTCP(port, GOLFactory())
     Runner.startup()
     reactor.run()