Fixed some bugs"
This commit is contained in:
@@ -128,6 +128,8 @@ void UWingServer::Deinitialize()
|
||||
|
||||
void UWingServer::Tick(float DeltaTime)
|
||||
{
|
||||
if (!bRunning) return;
|
||||
|
||||
// Accept new connections (non-blocking)
|
||||
AcceptNewConnections();
|
||||
|
||||
@@ -158,11 +160,6 @@ void UWingServer::TickServer(float DeltaTime)
|
||||
if (GWingServer) GWingServer->Tick(DeltaTime);
|
||||
}
|
||||
|
||||
bool UWingServer::IsTickable() const
|
||||
{
|
||||
return bRunning;
|
||||
}
|
||||
|
||||
TStatId UWingServer::GetStatId() const
|
||||
{
|
||||
RETURN_QUICK_DECLARE_CYCLE_STAT(UWingServer, STATGROUP_Tickables);
|
||||
@@ -480,10 +477,7 @@ void UWingServer::BuildWingHandlerRegistry()
|
||||
|
||||
void UWingServer::OnModulesChanged(FName ModuleName, EModuleChangeReason Reason)
|
||||
{
|
||||
if (Reason == EModuleChangeReason::ModuleLoaded)
|
||||
{
|
||||
BuildWingHandlerRegistry();
|
||||
}
|
||||
BuildWingHandlerRegistry();
|
||||
}
|
||||
|
||||
FWingHandlerConfig* UWingServer::FindHandler(const FString& Name)
|
||||
|
||||
Reference in New Issue
Block a user