Skip to content

Commit

Permalink
flushing
Browse files Browse the repository at this point in the history
  • Loading branch information
arpruss committed Jun 26, 2016
1 parent b85792d commit 4954f0a
Show file tree
Hide file tree
Showing 16 changed files with 15 additions and 12 deletions.
Binary file modified 110/.gradle/2.7/taskArtifacts/cache.properties.lock
Binary file not shown.
Binary file modified 110/.gradle/2.7/taskArtifacts/fileHashes.bin
Binary file not shown.
Binary file modified 110/.gradle/2.7/taskArtifacts/fileSnapshots.bin
Binary file not shown.
Binary file modified 110/.gradle/2.7/taskArtifacts/outputFileStates.bin
Binary file not shown.
Binary file modified 110/.gradle/2.7/taskArtifacts/taskArtifacts.bin
Binary file not shown.
5 changes: 2 additions & 3 deletions 110/.gradle/gradle.log
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,12 @@ Note: Recompile with -Xlint:unchecked for details.
:reobfJar
:extractRangemapReplacedMain
C:\Devel\mc\110\build\sources\main\java
:retromapReplacedMain
remapping source...
:retromapReplacedMain UP-TO-DATE
:sourceJar
:assemble
:check UP-TO-DATE
:build

BUILD SUCCESSFUL

Total time: 58.23 secs
Total time: 34.344 secs
Binary file modified 194/.gradle/2.7/taskArtifacts/cache.properties.lock
Binary file not shown.
Binary file modified 194/.gradle/2.7/taskArtifacts/fileHashes.bin
Binary file not shown.
Binary file modified 194/.gradle/2.7/taskArtifacts/fileSnapshots.bin
Binary file not shown.
Binary file modified 194/.gradle/2.7/taskArtifacts/outputFileStates.bin
Binary file not shown.
Binary file modified 194/.gradle/2.7/taskArtifacts/taskArtifacts.bin
Binary file not shown.
5 changes: 2 additions & 3 deletions 194/.gradle/gradle.log
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,12 @@ Note: Recompile with -Xlint:unchecked for details.
:reobfJar
:extractRangemapReplacedMain
C:\Devel\mc\194\build\sources\main\java
:retromapReplacedMain
remapping source...
:retromapReplacedMain UP-TO-DATE
:sourceJar
:assemble
:check UP-TO-DATE
:build

BUILD SUCCESSFUL

Total time: 58.6 secs
Total time: 42.83 secs
Binary file modified python2-scripts.zip
Binary file not shown.
10 changes: 7 additions & 3 deletions python2-scripts/mcpipy/mcpi/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,13 @@ def __init__(self, address=None, port=None):
self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.socket.connect((address, port))
self.readFile = self.socket.makefile("r")
self.windows = (platform.system() == "Windows" or platform.system().startswith("CYGWIN_NT"))
self.lastSent = ""
if platform.system() == "Windows":
if self.windows:
atexit.register(self.close)

def __del__(self):
if platform.system() == "Windows":
if self.windows:
self.close()
try:
atexit.unregister(self.close)
Expand All @@ -49,9 +50,12 @@ def __del__(self):

def close(self):
try:
if platform.system() == "Windows":
if self.windows:
# ugly hack to block until all sending is completed
self.sendReceive("world.getBlock",0,0,0)
except:
pass
try:
self.socket.close()
except:
pass
Expand Down
Binary file modified python3-scripts.zip
Binary file not shown.
7 changes: 4 additions & 3 deletions python3-scripts/mcpipy/mcpi/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,13 @@ def __init__(self, address=None, port=None):
self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.socket.connect((address, port))
self.readFile = self.socket.makefile("r")
self.windows = (platform.system() == "Windows" or platform.system().startswith("CYGWIN_NT"))
self.lastSent = ""
if platform.system() == "Windows":
if self.windows:
atexit.register(self.close)

def __del__(self):
if platform.system() == "Windows":
if self.windows:
self.close()
try:
atexit.unregister(self.close)
Expand All @@ -49,7 +50,7 @@ def __del__(self):

def close(self):
try:
if platform.system() == "Windows":
if self.windows:
# ugly hack to block until all sending is completed
self.sendReceive("world.getBlock",0,0,0)
self.socket.close()
Expand Down

0 comments on commit 4954f0a

Please sign in to comment.