Ironed out some bugs, removed nogui chatting until I can figure out a nice non blocking approach
This commit is contained in:
1 parent
4ffcc4b04d
commit
908f9465a4
3 files changed
+15
-7
No files matched your search
@@ -99,7 +99,7 @@ class KeepConnectionAlive(threading.Thread):
|
||||
if __name__ == "__main__":
|
||||
noGUI = False
|
||||
if (len(sys.argv) > 1):
|
||||
if (sys.argv.count("nogui") > 1) :
|
||||
if (sys.argv.count("nogui") > 0) :
|
||||
noGUI = True
|
||||
|
||||
if(noGUI or wxImportError):
|
||||
@@ -121,9 +121,7 @@ if __name__ == "__main__":
|
||||
port = 25565
|
||||
connection = NetworkManager.ServerConnection(None, derp['Username'], passwd, sessionid, host, port)
|
||||
connection.start()
|
||||
while True:
|
||||
chat = raw_input()
|
||||
PacketSenderManager.send03(connection.grabSocket(), chat)
|
||||
raw_input()
|
||||
else:
|
||||
app = wx.PySimpleApp()
|
||||
Login = GUI.MainFrame(None, -1, "")
|
||||
|
||||
Reference in new issue
Block a user