]> git.saurik.com Git - wxWidgets.git/commitdiff
fix timeout value for wxDatagramSocket: was off by a factor of 1000
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 23 Nov 2008 01:15:44 +0000 (01:15 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 23 Nov 2008 01:15:44 +0000 (01:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56924 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/socket.cpp

index 6de0020de0ec4b13c8382137aa74eceddc6de7fd..d7acc0b6712000e12f08114688c8fe7673ac39c3 100644 (file)
@@ -1553,7 +1553,7 @@ wxDatagramSocket::wxDatagramSocket( const wxSockAddress& addr,
     // Initialize all stuff
     m_connected = false;
     m_establishing = false;
-    m_socket->SetTimeout( m_timeout );
+    m_socket->SetTimeout( m_timeout * 1000 );
     m_socket->SetCallback( GSOCK_INPUT_FLAG | GSOCK_OUTPUT_FLAG |
                            GSOCK_LOST_FLAG | GSOCK_CONNECTION_FLAG,
                            wx_socket_callback, (char*)this );