• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

shogi-server source


Commit MetaInfo

Revisión79ebc61d6e600bb523a4cf426b42c7423bf0992c (tree)
Tiempo2004-06-29 00:56:56
Autornabeken <nabeken@b8c6...>
Commiternabeken

Log Message

fixed "player nil" bug

Cambiar Resumen

Diferencia incremental

--- a/shogi-server
+++ b/shogi-server
@@ -808,13 +808,15 @@ def main
808808 else
809809 client.write_safe("LOGIN:incorrect" + eol)
810810 client.write_safe("type 'LOGIN name password' or 'LOGIN name password x1'" + eol) if (str.split.length >= 4)
811- client.close
812- Thread::kill(Thread::current)
813811 end
814812 ensure
815813 $mutex.unlock
816814 end
817815 end # login loop
816+ if (! player)
817+ client.close
818+ Thread::kill(Thread::current)
819+ end
818820 log_message(sprintf("user %s login", player.name))
819821 player.run
820822 begin