OSDN Git Service

バグ修正(ロックのミス)
[peercast-im/PeerCastIM.git] / c: / Git / PeerCast.root / PeerCast / ui / win32 / simple / gui.cpp
index 23eb053..d1768b7 100644 (file)
@@ -127,12 +127,12 @@ THREAD_PROC GetHostName(ThreadInfo *thread){
        unsigned int ip;
        bool flg = TRUE;
 
-       ChannelDataLock.on();
        ip = htonl(id->getIpAddr());
 
        for (int i=0; i<5 && flg; i++){
                he = gethostbyaddr((char *)&ip,sizeof(ip),AF_INET);
 
+               ChannelDataLock.on();
                ChannelData* cd = channelDataTop;
                if (he)
                {